2019-02-14 17:31:19 +03:00
|
|
|
# coding: utf8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from .stop_words import STOP_WORDS
|
2020-02-03 15:03:59 +03:00
|
|
|
from .tag_map import TAG_MAP
|
|
|
|
from .lex_attrs import LEX_ATTRS
|
|
|
|
|
2019-02-14 17:31:19 +03:00
|
|
|
from ...language import Language
|
|
|
|
from ...attrs import LANG
|
|
|
|
|
|
|
|
|
|
|
|
class SlovakDefaults(Language.Defaults):
|
|
|
|
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
2020-02-03 15:03:59 +03:00
|
|
|
lex_attr_getters.update(LEX_ATTRS)
|
2019-02-14 17:31:19 +03:00
|
|
|
lex_attr_getters[LANG] = lambda text: "sk"
|
2020-02-03 15:03:59 +03:00
|
|
|
tag_map = TAG_MAP
|
2019-02-14 17:31:19 +03:00
|
|
|
stop_words = STOP_WORDS
|
|
|
|
|
|
|
|
|
|
|
|
class Slovak(Language):
|
|
|
|
lang = "sk"
|
|
|
|
Defaults = SlovakDefaults
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ["Slovak"]
|