mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-12 04:38:28 +03:00
14 lines
474 B
Python
14 lines
474 B
Python
|
# coding: utf-8
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
import pytest
|
||
|
|
||
|
|
||
|
@pytest.mark.parametrize('string,lemma', [('câini', 'câine'),
|
||
|
('expedițiilor', 'expediție'),
|
||
|
('pensete', 'pensetă'),
|
||
|
('erau', 'fi')])
|
||
|
def test_lemmatizer_lookup_assigns(ro_tokenizer, string, lemma):
|
||
|
tokens = ro_tokenizer(string)
|
||
|
assert tokens[0].lemma_ == lemma
|