mirror of https://github.com/explosion/spaCy.git
Fix lemma ordering in test
This commit is contained in:
parent
75e1618ec3
commit
102f797933
|
@ -6,7 +6,7 @@ import pytest
|
|||
|
||||
# Note: "chromosomes" worked previous the bug fix
|
||||
@pytest.mark.models('en')
|
||||
@pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocalize", "colocaliz"])])
|
||||
@pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocaliz", "colocalize"])])
|
||||
def test_issue781(EN, word, lemmas):
|
||||
lemmatizer = EN.Defaults.create_lemmatizer()
|
||||
assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == lemmas
|
||||
|
|
Loading…
Reference in New Issue