spaCy/spacy/tests/lang/ja/test_lemma.py
Paul O'Leary McCann 1987f3f784 Add Japanese lemmas (#2543)
This info was already available from Mecab, forgot to add it before.
2018-07-13 10:55:14 +02:00

19 lines
420 B
Python

# coding: utf-8
from __future__ import unicode_literals
import pytest
LEMMAS = (
('新しく', '新しい'),
('赤く', '赤い'),
('すごく', '凄い'),
('いただきました', '頂く'),
('なった', '成る'))
@pytest.mark.parametrize('word,lemma', LEMMAS)
def test_japanese_lemmas(JA, word, lemma):
test_lemma = JA(word)[0].lemma_
assert test_lemma == lemma