Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
spacy / tests / lang / uk / test_lemmatizer.py
Size: Mime:
import pytest
from spacy.tokens import Doc


pytestmark = pytest.mark.filterwarnings("ignore::DeprecationWarning")


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)
    assert [token.lemma for token in doc]


def test_uk_lookup_lemmatizer(uk_lookup_lemmatizer):
    """Check that the lookup uk lemmatizer runs."""
    doc = Doc(uk_lookup_lemmatizer.vocab, words=["a", "b", "c"])
    uk_lookup_lemmatizer(doc)
    assert [token.lemma for token in doc]