mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +03:00
Fix test for word vector
This commit is contained in:
parent
13a0b31279
commit
f38eb25fe1
|
@ -8,11 +8,11 @@ import pytest
|
||||||
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.vector[0] > 0.07
|
assert -0.7 >= hype.vector[0] > -0.8
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.models
|
@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.vector[0] > 0.07
|
assert -0.7 >= hype.vector[0] > -0.8
|
||||||
|
|
Loading…
Reference in New Issue
Block a user