Skip to content

Commit

Permalink
Test #595 -- Bug in lemmatization of base forms.
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Nov 3, 2016
1 parent f1605df commit 4a8a2b6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spacy/tests/regression/test_issue595.py
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 4a8a2b6

Please sign in to comment.