mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-04 13:40:34 +03:00
Add regression test for #1281
This commit is contained in:
parent
edc596d9a7
commit
dcff10abe9
13
spacy/tests/regression/test_issue1281.py
Normal file
13
spacy/tests/regression/test_issue1281.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
# coding: utf8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.parametrize('text', [
|
||||
"She hasn't done the housework.",
|
||||
"I haven't done it before.",
|
||||
"you daren't do that"])
|
||||
def test_issue1281(en_tokenizer, text):
|
||||
tokens = en_tokenizer(text)
|
||||
assert tokens[2].text == "n't"
|
Loading…
Reference in New Issue
Block a user