From 5384fff5ceaa694109b6a6efa790877aabd5be7e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 6 Sep 2017 18:40:18 +0200 Subject: [PATCH] Add test for 1305: Incorrect lemmatization of VBZ for English --- spacy/tests/regression/test_issue1305.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 spacy/tests/regression/test_issue1305.py diff --git a/spacy/tests/regression/test_issue1305.py b/spacy/tests/regression/test_issue1305.py new file mode 100644 index 000000000..e123ce0ba --- /dev/null +++ b/spacy/tests/regression/test_issue1305.py @@ -0,0 +1,8 @@ +import pytest + +@pytest.mark.models('en') +def test_issue1305(EN): + '''Test lemmatization of English VBZ''' + assert EN.vocab.morphology.lemmatizer('works', 'verb') == set(['work']) + doc = EN(u'This app works well') + assert doc[2].lemma_ == 'work'