mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 13:47:13 +03:00
1987f3f784
This info was already available from Mecab, forgot to add it before.
19 lines
420 B
Python
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
|
|
|
|
|