2019-02-14 14:31:19 +00:00
|
|
|
from .stop_words import STOP_WORDS
|
2020-11-05 09:13:11 +00:00
|
|
|
from .tag_map import TAG_MAP
|
2019-02-14 14:31:19 +00:00
|
|
|
from ...language import Language
|
|
|
|
from ...attrs import LANG
|
2020-08-21 14:17:53 +00:00
|
|
|
from .lex_attrs import LEX_ATTRS
|
2019-02-14 14:31:19 +00:00
|
|
|
from ...language import Language
|
|
|
|
|
|
|
|
|
|
|
|
class CzechDefaults(Language.Defaults):
|
|
|
|
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
2020-08-21 14:17:53 +00:00
|
|
|
lex_attr_getters.update(LEX_ATTRS)
|
2019-02-14 14:31:19 +00:00
|
|
|
lex_attr_getters[LANG] = lambda text: "cs"
|
2020-11-05 09:13:11 +00:00
|
|
|
tag_map = TAG_MAP
|
2019-02-14 14:31:19 +00:00
|
|
|
stop_words = STOP_WORDS
|
2020-09-04 11:15:36 +00:00
|
|
|
lex_attr_getters = LEX_ATTRS
|
2019-02-14 14:31:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Czech(Language):
|
|
|
|
lang = "cs"
|
|
|
|
Defaults = CzechDefaults
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ["Czech"]
|