mirror of https://github.com/explosion/spaCy.git
* Python3 fix for test_tag_names
This commit is contained in:
parent
76d9394cb4
commit
1f31774078
|
@ -5,7 +5,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 type(pizza.pos_) == unicode
|
||||
assert type(pizza.pos_) == str
|
||||
assert type(pizza.dep) == int
|
||||
assert type(pizza.dep_) == unicode
|
||||
assert type(pizza.dep_) == str
|
||||
assert pizza.tag_ == u'NNS'
|
||||
|
|
Loading…
Reference in New Issue