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