mirror of https://github.com/explosion/spaCy.git
Fix model-mark on regression test.
This commit is contained in:
parent
d9bb1e5de8
commit
094512fd47
|
@ -1,11 +1,10 @@
|
||||||
import pytest
|
import pytest
|
||||||
import spacy
|
import spacy
|
||||||
|
|
||||||
#@pytest.mark.models('en')
|
@pytest.mark.models('en')
|
||||||
def test_issue1305():
|
def test_issue1305():
|
||||||
'''Test lemmatization of English VBZ'''
|
'''Test lemmatization of English VBZ'''
|
||||||
nlp = spacy.load('en_core_web_sm')
|
nlp = spacy.load('en_core_web_sm')
|
||||||
assert nlp.vocab.morphology.lemmatizer('works', 'verb') == ['work']
|
assert nlp.vocab.morphology.lemmatizer('works', 'verb') == ['work']
|
||||||
doc = nlp(u'This app works well')
|
doc = nlp(u'This app works well')
|
||||||
print([(w.text, w.tag_) for w in doc])
|
|
||||||
assert doc[2].lemma_ == 'work'
|
assert doc[2].lemma_ == 'work'
|
||||||
|
|
Loading…
Reference in New Issue