mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
c9cd516d96
* Move tests out of package * Fix typo
21 lines
553 B
Python
21 lines
553 B
Python
# coding: utf-8
|
||
from __future__ import unicode_literals
|
||
|
||
import pytest
|
||
|
||
|
||
@pytest.mark.parametrize(
|
||
"string,lemma",
|
||
[
|
||
("најадекватнији", "адекватан"),
|
||
("матурирао", "матурирати"),
|
||
("планираћемо", "планирати"),
|
||
("певају", "певати"),
|
||
("нама", "ми"),
|
||
("се", "себе"),
|
||
],
|
||
)
|
||
def test_sr_lemmatizer_lookup_assigns(sr_tokenizer, string, lemma):
|
||
tokens = sr_tokenizer(string)
|
||
assert tokens[0].lemma_ == lemma
|