mirror of https://github.com/explosion/spaCy.git
fix indentation -.-
This commit is contained in:
parent
dae6bc05eb
commit
857454ffa0
|
@ -15,6 +15,7 @@ class German(Language):
|
||||||
@classmethod
|
@classmethod
|
||||||
def default_vocab(cls, package, get_lex_attr=None, vectors_package=None):
|
def default_vocab(cls, package, get_lex_attr=None, vectors_package=None):
|
||||||
vocab = super(German,cls).default_vocab(package,get_lex_attr,vectors_package)
|
vocab = super(German,cls).default_vocab(package,get_lex_attr,vectors_package)
|
||||||
# for now until the morphology is done for German
|
# set a dummy lemmatizer for now that simply returns the same string
|
||||||
|
# until the morphology is done for German
|
||||||
vocab.morphology.lemmatizer = lambda string,pos: set([string])
|
vocab.morphology.lemmatizer = lambda string,pos: set([string])
|
||||||
return vocab
|
return vocab
|
||||||
|
|
Loading…
Reference in New Issue