From 444d665f9dd9befe00a60f3e3ead9418546bd24e Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 13 Mar 2017 12:23:35 +0100 Subject: [PATCH] Add regression test for #686 --- spacy/tests/regression/test_issue686.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 spacy/tests/regression/test_issue686.py diff --git a/spacy/tests/regression/test_issue686.py b/spacy/tests/regression/test_issue686.py new file mode 100644 index 000000000..2ca882514 --- /dev/null +++ b/spacy/tests/regression/test_issue686.py @@ -0,0 +1,13 @@ +# coding: utf8 +from __future__ import unicode_literals + +import pytest + + +@pytest.mark.xfail +@pytest.mark.models +@pytest.mark.parametrize('text', ["He is the man.", "They are the men."]) +def test_issue686(EN, text): + """Test that pronoun lemmas are assigned correctly.""" + tokens = EN(text) + assert tokens[0].lemma_ == "-PRON-"