mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Update test
This commit is contained in:
parent
66d7a6eca2
commit
64e5f02cf7
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user