2019-02-12 17:28:39 +00:00
|
|
|
from .stop_words import STOP_WORDS
|
|
|
|
from ...language import Language
|
|
|
|
from ...attrs import LANG
|
|
|
|
|
|
|
|
|
|
|
|
class KannadaDefaults(Language.Defaults):
|
2019-02-13 14:29:08 +00:00
|
|
|
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
|
|
|
lex_attr_getters[LANG] = lambda text: "kn"
|
2019-02-12 17:28:39 +00:00
|
|
|
stop_words = STOP_WORDS
|
|
|
|
|
|
|
|
|
|
|
|
class Kannada(Language):
|
2019-02-12 17:30:11 +00:00
|
|
|
lang = "kn"
|
2019-02-12 17:28:39 +00:00
|
|
|
Defaults = KannadaDefaults
|
|
|
|
|
|
|
|
|
2019-02-12 17:30:11 +00:00
|
|
|
__all__ = ["Kannada"]
|