From f38eb25fe13320297baad173c8e6d6ac7cfb9542 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 18 Dec 2016 23:31:55 +0100 Subject: [PATCH] Fix test for word vector --- spacy/tests/tokens/test_vec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/tests/tokens/test_vec.py b/spacy/tests/tokens/test_vec.py index 028328fa6..f98b4de96 100644 --- a/spacy/tests/tokens/test_vec.py +++ b/spacy/tests/tokens/test_vec.py @@ -8,11 +8,11 @@ import pytest def test_vec(EN): hype = EN.vocab['hype'] assert hype.orth_ == 'hype' - assert 0.08 >= hype.vector[0] > 0.07 + assert -0.7 >= hype.vector[0] > -0.8 @pytest.mark.models def test_capitalized(EN): hype = EN.vocab['Hype'] assert hype.orth_ == 'Hype' - assert 0.08 >= hype.vector[0] > 0.07 + assert -0.7 >= hype.vector[0] > -0.8