spaCy/spacy/lang/ta/__init__.py

24 lines
496 B
Python
Raw Normal View History

2019-02-07 20:07:02 +00:00
# coding: utf8
from __future__ import unicode_literals
from .stop_words import STOP_WORDS
from .lex_attrs import LEX_ATTRS
from ...language import Language
from ...attrs import LANG
2019-02-07 20:07:02 +00:00
class TamilDefaults(Language.Defaults):
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
2019-02-07 20:07:02 +00:00
lex_attr_getters[LANG] = lambda text: "ta"
lex_attr_getters.update(LEX_ATTRS)
2019-02-08 13:14:49 +00:00
stop_words = STOP_WORDS
2019-02-07 20:00:04 +00:00
class Tamil(Language):
2019-02-07 20:07:02 +00:00
lang = "ta"
Defaults = TamilDefaults
2019-02-07 20:00:04 +00:00
2019-02-07 20:00:04 +00:00
__all__ = ["Tamil"]