From e7062cf699bdc39d9d5e3aec31bcd073bae46ee5 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Tue, 2 Apr 2019 13:15:35 +0200 Subject: [PATCH] failing test for Issue #3521 --- spacy/tests/regression/test_issue3521.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 spacy/tests/regression/test_issue3521.py diff --git a/spacy/tests/regression/test_issue3521.py b/spacy/tests/regression/test_issue3521.py new file mode 100644 index 000000000..a971ab4c6 --- /dev/null +++ b/spacy/tests/regression/test_issue3521.py @@ -0,0 +1,20 @@ +import pytest + +from spacy.lang.en import English + + +@pytest.mark.parametrize( + "word", + [ + "don't", + "don’t", + "I'd", + "I’d", + ], +) +def test_issue3521(fr_tokenizer, word): + nlp = English() + + tok = nlp(word)[1] + assert tok.is_stop +