mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
* 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]
|
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'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user