mirror of https://github.com/explosion/spaCy.git
Update test
This commit is contained in:
parent
90bf797125
commit
66d7a6eca2
|
@ -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.matcher = spacy.en.English.Defaults.create_matcher(nlp=nlp)
|
||||||
|
|
||||||
nlp.matcher.add('FOOD', 'FOOD', {}, patterns)
|
nlp.matcher.add('FOOD', 'FOOD', {}, patterns)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue