mirror of https://github.com/explosion/spaCy.git
Add test for Issue #435
This commit is contained in:
parent
3cb4d455d2
commit
9c8ac91d72
|
@ -45,6 +45,12 @@ def test_noun_lemmas(lemmatizer):
|
||||||
assert do('axes') == set(['axis', 'axe', 'ax'])
|
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):
|
def test_smart_quotes(lemmatizer):
|
||||||
do = lemmatizer.punct
|
do = lemmatizer.punct
|
||||||
assert do('“') == set(['"'])
|
assert do('“') == set(['"'])
|
||||||
|
|
Loading…
Reference in New Issue