mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Test #595 -- Bug in lemmatization of base forms.
This commit is contained in:
parent
f1605df2ec
commit
4a8a2b6001
14
spacy/tests/regression/test_issue595.py
Normal file
14
spacy/tests/regression/test_issue595.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
import pytest
|
||||
|
||||
import spacy
|
||||
|
||||
|
||||
@pytest.mark.models
|
||||
def test_not_lemmatize_base_forms():
|
||||
nlp = spacy.load('en', parser=False)
|
||||
doc = nlp(u"Don't feed the dog")
|
||||
feed = doc[2]
|
||||
feed.tag_ = u'VB'
|
||||
assert feed.text == u'feed'
|
||||
assert feed.lemma_ == u'feed'
|
||||
|
Loading…
Reference in New Issue
Block a user