Fix loading of lemmatizer

This commit is contained in:
Matthew Honnibal 2016-12-18 17:34:09 +01:00
parent 3980f1b0cb
commit 3679fb43a3
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class BaseDefaults(object):
if nlp is None or nlp.path is None:
return Lemmatizer({}, {}, {})
else:
return Lemmatizer.load(nlp.path, rules=self.lemma_rules)
return Lemmatizer.load(nlp.path, rules=cls.lemma_rules)
@classmethod
def create_vocab(cls, nlp=None):