mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Update mark on test_vec
This commit is contained in:
parent
361f6fdd74
commit
5fa18e4f9d
|
@ -4,15 +4,15 @@ from spacy.en import English
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@pytest.mark.vectors
|
@pytest.mark.models
|
||||||
def test_vec(EN):
|
def test_vec(EN):
|
||||||
hype = EN.vocab['hype']
|
hype = EN.vocab['hype']
|
||||||
assert hype.orth_ == 'hype'
|
assert hype.orth_ == 'hype'
|
||||||
assert 0.08 >= hype.repvec[0] > 0.07
|
assert 0.08 >= hype.vector[0] > 0.07
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.vectors
|
@pytest.mark.models
|
||||||
def test_capitalized(EN):
|
def test_capitalized(EN):
|
||||||
hype = EN.vocab['Hype']
|
hype = EN.vocab['Hype']
|
||||||
assert hype.orth_ == 'Hype'
|
assert hype.orth_ == 'Hype'
|
||||||
assert 0.08 >= hype.repvec[0] > 0.07
|
assert 0.08 >= hype.vector[0] > 0.07
|
||||||
|
|
Loading…
Reference in New Issue
Block a user