diff --git a/spacy/language.py b/spacy/language.py index 60f569a64..e373c7ce0 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -275,7 +275,7 @@ class Language(object): self.make_doc = overrides['make_doc'] elif 'create_make_doc' in overrides: self.make_doc = overrides['create_make_doc'](self) - else: + elif not hasattr(self, 'make_doc'): self.make_doc = lambda text: self.tokenizer(text) if 'pipeline' in overrides: self.pipeline = overrides['pipeline']