From ec7d36c3a45aa14cd4213cc3037b8e0cf3f19950 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 12 Nov 2015 05:00:40 +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 064b36b91..9904dde63 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(EN.ents)[0].text == 'cal' + assert list(doc.ents)[0].text == 'cal'