spaCy/tests/tokens/test_vec.py
Matthew Honnibal 3a5299faec * Upd tests
2015-07-23 01:19:11 +02:00

19 lines
376 B
Python

from __future__ import unicode_literals
from spacy.en import English
import pytest
@pytest.mark.vectors
def test_vec(EN):
hype = EN.vocab['hype']
assert hype.orth_ == 'hype'
assert 0.08 >= hype.repvec[0] > 0.07
@pytest.mark.vectors
def test_capitalized(EN):
hype = EN.vocab['Hype']
assert hype.orth_ == 'Hype'
assert 0.08 >= hype.repvec[0] > 0.07