mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 13:17:06 +03:00
f4008bdb13
For the Russian and Ukrainian lemmatizers, restrict the `pymorphy2` requirement to the mode `pymorphy2` so that lookup or other lemmatizer modes can be loaded without installing `pymorphy2`.
9 lines
218 B
Python
9 lines
218 B
Python
import pytest
|
|
from spacy.tokens import Doc
|
|
|
|
|
|
def test_uk_lemmatizer(uk_lemmatizer):
|
|
"""Check that the default uk lemmatizer runs."""
|
|
doc = Doc(uk_lemmatizer.vocab, words=["a", "b", "c"])
|
|
uk_lemmatizer(doc)
|