2019-02-14 14:31:19 +00:00
|
|
|
# coding: utf8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from .stop_words import STOP_WORDS
|
2020-02-03 12:03:59 +00:00
|
|
|
from .tag_map import TAG_MAP
|
|
|
|
from .lex_attrs import LEX_ATTRS
|
|
|
|
|
2019-02-14 14:31:19 +00: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 12:03:59 +00:00
|
|
|
lex_attr_getters.update(LEX_ATTRS)
|
2019-02-14 14:31:19 +00:00
|
|
|
lex_attr_getters[LANG] = lambda text: "sk"
|
2020-02-03 12:03:59 +00:00
|
|
|
tag_map = TAG_MAP
|
2019-02-14 14:31:19 +00:00
|
|
|
stop_words = STOP_WORDS
|
|
|
|
|
|
|
|
|
|
|
|
class Slovak(Language):
|
|
|
|
lang = "sk"
|
|
|
|
Defaults = SlovakDefaults
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ["Slovak"]
|