From 9c8ac91d72b1a38f1947d804669a8b5612e2034b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 27 Sep 2016 13:52:38 +0200 Subject: [PATCH] Add test for Issue #435 --- spacy/tests/tagger/test_lemmatizer.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spacy/tests/tagger/test_lemmatizer.py b/spacy/tests/tagger/test_lemmatizer.py index 8cde74052..48cfdd30e 100644 --- a/spacy/tests/tagger/test_lemmatizer.py +++ b/spacy/tests/tagger/test_lemmatizer.py @@ -45,6 +45,12 @@ def test_noun_lemmas(lemmatizer): assert do('axes') == set(['axis', 'axe', 'ax']) +def test_base_form_dive(lemmatizer): + do = lemmatizer.noun + assert do('dive', number='sing') == set(['dive']) + assert do('dive', number='plur') == set(['diva']) + + def test_smart_quotes(lemmatizer): do = lemmatizer.punct assert do('“') == set(['"'])