spaCy/spacy/tests/regression/test_issue401.py
ines d0b85faf69 Pass regression test for #401 (resolves #401)
Fixed in new English models.
2017-03-18 17:06:49 +01:00

14 lines
384 B
Python

# coding: utf8
from __future__ import unicode_literals
import pytest
@pytest.mark.models
@pytest.mark.parametrize('text,i', [("Jane's got a new car", 1),
("Jane thinks that's a nice car", 3)])
def test_issue401(EN, text, i):
"""Text that 's in contractions is not lemmatized as '."""
tokens = EN(text)
assert tokens[i].lemma_ != "'"