Update test

This commit is contained in:
Matthew Honnibal 2016-10-23 21:08:07 +02:00
parent 66d7a6eca2
commit 64e5f02cf7

View File

@ -49,7 +49,7 @@ def test_overlap_issue242():
data_dir = None data_dir = None
nlp = spacy.en.English(path=data_dir, tagger=False, parser=False, entity=False) nlp = spacy.en.English(path=data_dir, tagger=False, parser=False, entity=False)
nlp.matcher = spacy.en.English.Defaults.create_matcher(nlp=nlp) nlp.matcher = Matcher(nlp.vocab)
nlp.matcher.add('FOOD', 'FOOD', {}, patterns) nlp.matcher.add('FOOD', 'FOOD', {}, patterns)