mirror of https://github.com/explosion/spaCy.git
Update matcher test
This commit is contained in:
parent
9cc9ce0f14
commit
1e1a1d9517
|
@ -46,9 +46,9 @@ def test_overlap_issue242():
|
|||
if os.environ.get('SPACY_DATA'):
|
||||
data_dir = os.environ.get('SPACY_DATA')
|
||||
else:
|
||||
data_dir = None
|
||||
data_dir = False
|
||||
|
||||
nlp = spacy.en.English(data_dir=data_dir, tagger=False, parser=False, entity=False)
|
||||
nlp = spacy.en.English(path=data_dir, tagger=False, parser=False, entity=False)
|
||||
|
||||
nlp.matcher.add('FOOD', 'FOOD', {}, patterns)
|
||||
|
||||
|
|
Loading…
Reference in New Issue