mirror of https://github.com/explosion/spaCy.git
#781 add regression test, failing previous bug fix
This commit is contained in:
parent
c4f16c66d1
commit
a471114eb2
|
@ -0,0 +1,10 @@
|
||||||
|
# coding: utf-8
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
# Note: "chromosomes" worked previous the bug fix
|
||||||
|
@pytest.mark.parametrize('word,lemma', [("chromosomes", "chromosome"), ("endosomes", "endosome"), ("colocalizes", "colocalize")])
|
||||||
|
def test_issue781(path, lemmatizer, word, lemma):
|
||||||
|
assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == set([lemma])
|
Loading…
Reference in New Issue