diff --git a/spacy/tests/matcher/test_matcher_bugfixes.py b/spacy/tests/matcher/test_matcher_bugfixes.py index e246a39ff..70946ec74 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=nlp) + nlp.matcher = Matcher(nlp.vocab) nlp.matcher.add('FOOD', 'FOOD', {}, patterns)