mirror of https://github.com/explosion/spaCy.git
* Fix test_morph_exceptions
This commit is contained in:
parent
7237c805c7
commit
ee927fbbb4
|
@ -21,5 +21,5 @@ def test_load_exc(EN, morph_exc):
|
||||||
EN.tagger.load_morph_exceptions(morph_exc)
|
EN.tagger.load_morph_exceptions(morph_exc)
|
||||||
tokens = EN('I like his style.', tag=True)
|
tokens = EN('I like his style.', tag=True)
|
||||||
his = tokens[2]
|
his = tokens[2]
|
||||||
assert EN.tagger.tag_names[his.tag] == 'PRP$'
|
assert his.tag_ == 'PRP$'
|
||||||
assert his.lemma_ == '-PRP-'
|
assert his.lemma_ == '-PRP-'
|
||||||
|
|
Loading…
Reference in New Issue