From d309622a27d5576e1a6a7fcff306d52336dd8e7f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 12 Nov 2015 04:59:11 +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 9797939ee..064b36b91 100644 --- a/spacy/tests/parser/test_ner.py +++ b/spacy/tests/parser/test_ner.py @@ -46,7 +46,7 @@ def test_unit_end_gazetteer(EN): ents = matcher(doc) assert len(ents) == 1 EN.entity(doc) - assert list(nlp.ents)[0].text == 'cal' + assert list(EN.ents)[0].text == 'cal'