mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Merge branch 'develop' into feature/disable-pipes
This commit is contained in:
commit
657a4d91bc
|
@ -1,11 +1,10 @@
|
|||
import pytest
|
||||
import spacy
|
||||
|
||||
#@pytest.mark.models('en')
|
||||
@pytest.mark.models('en')
|
||||
def test_issue1305():
|
||||
'''Test lemmatization of English VBZ'''
|
||||
nlp = spacy.load('en_core_web_sm')
|
||||
assert nlp.vocab.morphology.lemmatizer('works', 'verb') == ['work']
|
||||
doc = nlp(u'This app works well')
|
||||
print([(w.text, w.tag_) for w in doc])
|
||||
assert doc[2].lemma_ == 'work'
|
||||
|
|
Loading…
Reference in New Issue
Block a user