diff --git a/spacy/language.py b/spacy/language.py index 2cb95b935..65193880e 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -125,7 +125,7 @@ class BaseDefaults(object): return Matcher(vocab) def MakeDoc(self, nlp, **cfg): - return nlp.tokenizer.__call__ + return lambda text: nlp.tokenizer(text) def Pipeline(self, nlp, **cfg): pipeline = []