2015-09-06 19:56:47 +00:00
|
|
|
from __future__ import unicode_literals, print_function
|
|
|
|
|
|
|
|
from os import path
|
|
|
|
|
|
|
|
from ..language import Language
|
2016-05-02 14:04:53 +00:00
|
|
|
from ..vocab import Vocab
|
|
|
|
from .. import attrs
|
|
|
|
from .. import util
|
|
|
|
from .. import about
|
2015-09-06 19:56:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
class German(Language):
|
2016-03-03 14:21:00 +00:00
|
|
|
lang = 'de'
|
2016-05-02 14:04:53 +00:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def default_vocab(cls, package, get_lex_attr=None, vectors_package=None):
|
|
|
|
vocab = super(German,cls).default_vocab(package,get_lex_attr,vectors_package)
|
|
|
|
# for now until the morphology is done for German
|
|
|
|
vocab.morphology.lemmatizer = lambda string,pos: set([string])
|
|
|
|
return vocab
|