mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
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:
|
if nlp is None or nlp.path is None:
|
||||||
return Lemmatizer({}, {}, {})
|
return Lemmatizer({}, {}, {})
|
||||||
else:
|
else:
|
||||||
return Lemmatizer.load(nlp.path, rules=self.lemma_rules)
|
return Lemmatizer.load(nlp.path, rules=cls.lemma_rules)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create_vocab(cls, nlp=None):
|
def create_vocab(cls, nlp=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user