mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix test_tag_names again
This commit is contained in:
parent
d1a5091052
commit
7d9d8c1489
|
@ -6,7 +6,7 @@ def test_tag_names():
|
|||
tokens = nlp(u'I ate pizzas with anchovies.', parse=True, tag=True)
|
||||
pizza = tokens[2]
|
||||
assert type(pizza.pos) == int
|
||||
assert isinstance(pizza.pos_, six.text_types)
|
||||
assert isinstance(pizza.pos_, six.text_type)
|
||||
assert type(pizza.dep) == int
|
||||
assert isinstance(pizza.dep_, six.text_types)
|
||||
assert isinstance(pizza.dep_, six.text_type)
|
||||
assert pizza.tag_ == u'NNS'
|
||||
|
|
Loading…
Reference in New Issue
Block a user