From e89069dcae76b613bce2891d77847e1fb224e3f2 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 19 Jan 2016 20:24:01 +0100 Subject: [PATCH] * Fix matcher test --- spacy/tests/matcher/test_matcher_bugfixes.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spacy/tests/matcher/test_matcher_bugfixes.py b/spacy/tests/matcher/test_matcher_bugfixes.py index ab44132b0..275c942c5 100644 --- a/spacy/tests/matcher/test_matcher_bugfixes.py +++ b/spacy/tests/matcher/test_matcher_bugfixes.py @@ -110,10 +110,7 @@ def test_overlap_prefix_reorder(EN): def test_ner_interaction(EN): EN.matcher.add('LAX_Airport', 'AIRPORT', {}, [[{ORTH: 'LAX'}]]) EN.matcher.add('SFO_Airport', 'AIRPORT', {}, [[{ORTH: 'SFO'}]]) - doc = EN.tokenizer(u'get me a flight from SFO to LAX leaving 20 December and arriving on January 5th') - EN.tagger(doc) - EN.matcher(doc) - EN.entity(doc) + doc = EN(u'get me a flight from SFO to LAX leaving 20 December and arriving on January 5th') ents = [(ent.label_, ent.text) for ent in doc.ents] assert ents[0] == ('AIRPORT', 'SFO')