mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
15 lines
272 B
Python
15 lines
272 B
Python
|
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'
|
||
|
|