* Upd tests

This commit is contained in:
Matthew Honnibal 2015-01-17 17:33:23 +11:00
parent 8ff5b8bd84
commit 06e7456c65
2 changed files with 2 additions and 2 deletions

View File

@ -23,5 +23,5 @@ def test_lemmas(lemmas, tagged):
assert lemmas[1] == 'in'
assert lemmas[2] == 'pyjama'
assert lemmas[3] == 'be'
if tagged[2].fine_pos == tagged[4].fine_pos:
if tagged[2].tag == tagged[4].tag:
assert lemmas[4] == 'goose'

View File

@ -21,5 +21,5 @@ def test_load_exc(EN, morph_exc):
EN.tagger.load_morph_exceptions(morph_exc)
tokens = EN('I like his style.', tag=True)
his = tokens[2]
assert EN.tagger.tag_names[his.fine_pos] == 'PRP$'
assert EN.tagger.tag_names[his.tag] == 'PRP$'
assert his.lemma_ == '-PRP-'