spaCy/spacy/tests/regression/test_issue719.py

13 lines
291 B
Python
Raw Normal View History

2017-03-13 11:17:35 +00:00
# coding: utf8
from __future__ import unicode_literals
import pytest
@pytest.mark.models
@pytest.mark.parametrize('text', ["s..."])
def test_issue719(EN, text):
"""Test that the token 's' is not lemmatized into empty string."""
tokens = EN(text)
assert tokens[0].lemma_ != ''