mirror of https://github.com/explosion/spaCy.git
Add German lemmatizer tests
This commit is contained in:
parent
15fe0fd82d
commit
453c47ca24
|
@ -0,0 +1,13 @@
|
||||||
|
# coding: utf-8
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize('string,lemma', [('Abgehängten', 'Abgehängte'),
|
||||||
|
('engagierte', 'engagieren'),
|
||||||
|
('schließt', 'schließen'),
|
||||||
|
('vorgebenden', 'vorgebend')])
|
||||||
|
def test_lemmatizer_lookup_assigns(de_tokenizer, string, lemma):
|
||||||
|
tokens = de_tokenizer(string)
|
||||||
|
assert tokens[0].lemma_ == lemma
|
Loading…
Reference in New Issue