* Refine lemma test to probe failure

This commit is contained in:
Matthew Honnibal 2015-01-03 23:41:16 +11:00
parent d40f9f76a9
commit 5d7e6e37ea

View File

@ -18,9 +18,10 @@ def lemmas(tagged):
return [t.lemma for t in tagged] return [t.lemma for t in tagged]
def test_lemmas(lemmas): def test_lemmas(lemmas, tagged):
assert lemmas[0] == 'banana' assert lemmas[0] == 'banana'
assert lemmas[1] == 'in' assert lemmas[1] == 'in'
assert lemmas[2] == 'pyjama' assert lemmas[2] == 'pyjama'
assert lemmas[3] == 'be' assert lemmas[3] == 'be'
assert tagged[2].fine_pos == tagged[4].fine_pos
assert lemmas[4] == 'goose' assert lemmas[4] == 'goose'