mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Add regression test for #717
This commit is contained in:
parent
2883ebfca2
commit
17018750ac
15
spacy/tests/regression/test_issue717.py
Normal file
15
spacy/tests/regression/test_issue717.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
# coding: utf8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
@pytest.mark.models
|
||||
@pytest.mark.parametrize('text1,text2', [("You're happy", "You are happy")])
|
||||
def test_issue717(EN, text1, text2):
|
||||
"""Test that contractions are assigned the correct lemma."""
|
||||
doc1 = EN(text1)
|
||||
doc2 = EN(text2)
|
||||
assert doc1[1].lemma_ == doc2[1].lemma_
|
||||
assert doc1[1].lemma == doc2[1].lemma
|
Loading…
Reference in New Issue
Block a user