mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Add regression test for #401
This commit is contained in:
parent
444d665f9d
commit
98c13d8aa9
14
spacy/tests/regression/test_issue401.py
Normal file
14
spacy/tests/regression/test_issue401.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
# coding: utf8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
@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_ != "'"
|
Loading…
Reference in New Issue
Block a user