diff --git a/spacy/tests/matcher/test_matcher_bugfixes.py b/spacy/tests/matcher/test_matcher_bugfixes.py index e2cbc5c18..e246a39ff 100644 --- a/spacy/tests/matcher/test_matcher_bugfixes.py +++ b/spacy/tests/matcher/test_matcher_bugfixes.py @@ -49,7 +49,7 @@ def test_overlap_issue242(): 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 = spacy.en.English.Defaults.create_matcher(nlp=nlp) nlp.matcher.add('FOOD', 'FOOD', {}, patterns)