mirror of https://github.com/explosion/spaCy.git
Fix loading of lemmatizer
This commit is contained in:
parent
3980f1b0cb
commit
3679fb43a3
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue