spaCy/spacy/tests/regression/test_issue686.py

13 lines
311 B
Python
Raw Normal View History

2017-03-13 14:23:35 +03:00
# coding: utf8
from __future__ import unicode_literals
import pytest
@pytest.mark.models
@pytest.mark.parametrize('text', ["He is the man", "he is the man"])
2017-03-13 14:23:35 +03:00
def test_issue686(EN, text):
"""Test that pronoun lemmas are assigned correctly."""
tokens = EN(text)
assert tokens[0].lemma_ == "-PRON-"