mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
* Upd tests
This commit is contained in:
parent
8ff5b8bd84
commit
06e7456c65
|
@ -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'
|
||||
|
|
|
@ -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-'
|
||||
|
|
Loading…
Reference in New Issue
Block a user