mirror of https://github.com/explosion/spaCy.git
* Upd test
This commit is contained in:
parent
db184716a0
commit
aceae64581
|
@ -16,7 +16,7 @@ def morph_exc():
|
|||
def test_load_exc(morph_exc):
|
||||
# Do this local as we want to modify it
|
||||
nlp = English()
|
||||
nlp.tagger.load_morph_exceptions(morph_exc)
|
||||
nlp.vocab.morphology.load_morph_exceptions(morph_exc)
|
||||
tokens = nlp('I like his style.', tag=True, parse=False)
|
||||
his = tokens[2]
|
||||
assert his.tag_ == 'PRP$'
|
||||
|
|
Loading…
Reference in New Issue