mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-10 16:40:34 +03:00
* Upd test
This commit is contained in:
parent
db184716a0
commit
aceae64581
|
@ -16,7 +16,7 @@ def morph_exc():
|
||||||
def test_load_exc(morph_exc):
|
def test_load_exc(morph_exc):
|
||||||
# Do this local as we want to modify it
|
# Do this local as we want to modify it
|
||||||
nlp = English()
|
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)
|
tokens = nlp('I like his style.', tag=True, parse=False)
|
||||||
his = tokens[2]
|
his = tokens[2]
|
||||||
assert his.tag_ == 'PRP$'
|
assert his.tag_ == 'PRP$'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user