2019-02-14 17:31:19 +03:00
|
|
|
# coding: utf8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from .stop_words import STOP_WORDS
|
|
|
|
from ...language import Language
|
|
|
|
from ...attrs import LANG
|
2020-08-21 17:17:53 +03:00
|
|
|
from .lex_attrs import LEX_ATTRS
|
2019-02-14 17:31:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
class CzechDefaults(Language.Defaults):
|
|
|
|
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
2020-08-21 17:17:53 +03:00
|
|
|
lex_attr_getters.update(LEX_ATTRS)
|
2019-02-14 17:31:19 +03:00
|
|
|
lex_attr_getters[LANG] = lambda text: "cs"
|
|
|
|
stop_words = STOP_WORDS
|
|
|
|
|
|
|
|
|
|
|
|
class Czech(Language):
|
|
|
|
lang = "cs"
|
|
|
|
Defaults = CzechDefaults
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ["Czech"]
|