mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
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
|
||
|
|
||
|
|