Add test for Issue #445, fixed in 3cb4d455d, with improved lemmatizer logic

This commit is contained in:
Matthew Honnibal 2016-09-27 18:39:46 +02:00
parent a2f3510d6d
commit 3d370b7d45

View File

@ -51,6 +51,11 @@ def test_base_form_dive(lemmatizer):
assert do('dive', number='plur') == set(['diva']) assert do('dive', number='plur') == set(['diva'])
def test_base_form_saw(lemmatizer):
do = lemmatizer.verb
assert do('saw', verbform='past') == set(['see'])
def test_smart_quotes(lemmatizer): def test_smart_quotes(lemmatizer):
do = lemmatizer.punct do = lemmatizer.punct
assert do('') == set(['"']) assert do('') == set(['"'])