2015-09-06 22:56:47 +03:00
|
|
|
from __future__ import unicode_literals, print_function
|
|
|
|
|
|
|
|
from os import path
|
|
|
|
|
|
|
|
from ..language import Language
|
|
|
|
|
|
|
|
|
|
|
|
class German(Language):
|
2016-03-03 17:21:00 +03:00
|
|
|
lang = 'de'
|
2016-05-02 17:04:53 +03:00
|
|
|
|
2016-05-02 18:10:41 +03:00
|
|
|
@classmethod
|
2016-05-02 17:04:53 +03:00
|
|
|
def default_vocab(cls, package, get_lex_attr=None, vectors_package=None):
|
|
|
|
vocab = super(German,cls).default_vocab(package,get_lex_attr,vectors_package)
|
2016-05-02 18:10:41 +03:00
|
|
|
# set a dummy lemmatizer for now that simply returns the same string
|
|
|
|
# until the morphology is done for German
|
2016-05-02 17:04:53 +03:00
|
|
|
vocab.morphology.lemmatizer = lambda string,pos: set([string])
|
|
|
|
return vocab
|