2019-02-14 17:31:19 +03:00
|
|
|
# coding: utf8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from .stop_words import STOP_WORDS
|
2020-11-05 12:13:11 +03:00
|
|
|
from .tag_map import TAG_MAP
|
2019-02-14 17:31:19 +03:00
|
|
|
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"
|
2020-11-05 12:13:11 +03:00
|
|
|
tag_map = TAG_MAP
|
2019-02-14 17:31:19 +03:00
|
|
|
stop_words = STOP_WORDS
|
|
|
|
|
|
|
|
|
|
|
|
class Czech(Language):
|
|
|
|
lang = "cs"
|
|
|
|
Defaults = CzechDefaults
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ["Czech"]
|