2023-06-26 12:41:03 +03:00
|
|
|
from ...language import BaseDefaults, Language
|
2023-05-17 13:45:21 +03:00
|
|
|
from .lex_attrs import LEX_ATTRS
|
2023-06-26 12:41:03 +03:00
|
|
|
from .punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES
|
|
|
|
from .stop_words import STOP_WORDS
|
2023-05-17 13:45:21 +03:00
|
|
|
from .syntax_iterators import SYNTAX_ITERATORS
|
2023-06-26 12:41:03 +03:00
|
|
|
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
|
2023-05-17 13:45:21 +03:00
|
|
|
|
|
|
|
|
|
|
|
class MalayDefaults(BaseDefaults):
|
|
|
|
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
|
|
|
|
prefixes = TOKENIZER_PREFIXES
|
|
|
|
suffixes = TOKENIZER_SUFFIXES
|
|
|
|
infixes = TOKENIZER_INFIXES
|
|
|
|
syntax_iterators = SYNTAX_ITERATORS
|
|
|
|
lex_attr_getters = LEX_ATTRS
|
|
|
|
stop_words = STOP_WORDS
|
|
|
|
|
|
|
|
|
|
|
|
class Malay(Language):
|
|
|
|
lang = "ms"
|
|
|
|
Defaults = MalayDefaults
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ["Malay"]
|