mirror of https://github.com/explosion/spaCy.git
* Refine lemma test to probe failure
This commit is contained in:
parent
d40f9f76a9
commit
5d7e6e37ea
|
@ -18,9 +18,10 @@ def lemmas(tagged):
|
|||
return [t.lemma for t in tagged]
|
||||
|
||||
|
||||
def test_lemmas(lemmas):
|
||||
def test_lemmas(lemmas, tagged):
|
||||
assert lemmas[0] == 'banana'
|
||||
assert lemmas[1] == 'in'
|
||||
assert lemmas[2] == 'pyjama'
|
||||
assert lemmas[3] == 'be'
|
||||
assert tagged[2].fine_pos == tagged[4].fine_pos
|
||||
assert lemmas[4] == 'goose'
|
||||
|
|
Loading…
Reference in New Issue