spaCy/spacy/lang/kn/__init__.py

21 lines
431 B
Python
Raw Normal View History

# 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 14:29:08 +00:00
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
lex_attr_getters[LANG] = lambda text: "kn"
stop_words = STOP_WORDS
class Kannada(Language):
2019-02-12 17:30:11 +00:00
lang = "kn"
Defaults = KannadaDefaults
2019-02-12 17:30:11 +00:00
__all__ = ["Kannada"]