mirror of https://github.com/explosion/spaCy.git
#781 Fix test — colocalizes is lemmatized to colocaliz and colicalize
This commit is contained in:
parent
a471114eb2
commit
a8cfde46d3
|
@ -5,6 +5,6 @@ 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])
|
||||
@pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocalize", "colocaliz"])])
|
||||
def test_issue781(path, lemmatizer, word, lemmas):
|
||||
assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == set(lemmas)
|
||||
|
|
Loading…
Reference in New Issue