mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Update test
This commit is contained in:
parent
5e76320ffe
commit
90bf797125
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user