From 56ea20a886558a8bf9245c835e5d7776c7755f6d Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 12 Nov 2015 04:58:53 +1100 Subject: [PATCH] * Add test for matcher end-point problem --- spacy/tests/parser/test_ner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/parser/test_ner.py b/spacy/tests/parser/test_ner.py index 182225758..9797939ee 100644 --- a/spacy/tests/parser/test_ner.py +++ b/spacy/tests/parser/test_ner.py @@ -45,7 +45,7 @@ def test_unit_end_gazetteer(EN): if len(list(doc.ents)) == 0: ents = matcher(doc) assert len(ents) == 1 - nlp.entity(doc) + EN.entity(doc) assert list(nlp.ents)[0].text == 'cal'