mirror of https://github.com/explosion/spaCy.git
18 lines
335 B
Python
18 lines
335 B
Python
from __future__ import unicode_literals
|
|
|
|
from spacy.en import English
|
|
|
|
import pytest
|
|
|
|
|
|
def test_vec(EN):
|
|
hype = EN.vocab['hype']
|
|
assert hype.orth_ == 'hype'
|
|
assert 0.08 >= hype.repvec[0] > 0.07
|
|
|
|
|
|
def test_capitalized(EN):
|
|
hype = EN.vocab['Hype']
|
|
assert hype.orth_ == 'Hype'
|
|
assert 0.08 >= hype.repvec[0] > 0.07
|