mirror of https://github.com/explosion/spaCy.git
fix indentation -.-
This commit is contained in:
parent
dae6bc05eb
commit
857454ffa0
|
@ -12,9 +12,10 @@ from .. import about
|
||||||
class German(Language):
|
class German(Language):
|
||||||
lang = 'de'
|
lang = 'de'
|
||||||
|
|
||||||
@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