Пример #1
0
def test_lemmatizer_default():
    french_lemmatizer = LefffLemmatizer(default=True)
    assert french_lemmatizer.lemmatize(u"Apple", u"NOUN") == u"apple"
Пример #2
0
def test_lemmatizer_exception():
    french_lemmatizer = LefffLemmatizer()
    assert french_lemmatizer.lemmatize(u"unknow34", u"unknown") is None