Update test

This commit is contained in:
Matthew Honnibal 2016-10-23 20:54:17 +02:00
parent 5e76320ffe
commit 90bf797125

View File

@ -46,9 +46,10 @@ def test_overlap_issue242():
if os.environ.get('SPACY_DATA'):
data_dir = os.environ.get('SPACY_DATA')
else:
data_dir = False
data_dir = None
nlp = spacy.en.English(path=data_dir, tagger=False, parser=False, entity=False)
nlp.matcher = spacy.en.English.Defaults.create_matcher()
nlp.matcher.add('FOOD', 'FOOD', {}, patterns)