* Fix test_tag_names again

This commit is contained in:
Matthew Honnibal 2015-02-01 16:25:03 +11:00
parent d1a5091052
commit 7d9d8c1489

View File

@ -6,7 +6,7 @@ def test_tag_names():
tokens = nlp(u'I ate pizzas with anchovies.', parse=True, tag=True) tokens = nlp(u'I ate pizzas with anchovies.', parse=True, tag=True)
pizza = tokens[2] pizza = tokens[2]
assert type(pizza.pos) == int 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 type(pizza.dep) == int
assert isinstance(pizza.dep_, six.text_types) assert isinstance(pizza.dep_, six.text_type)
assert pizza.tag_ == u'NNS' assert pizza.tag_ == u'NNS'