spaCy/spacy/lang/hu/__init__.py

22 lines
575 B
Python
Raw Normal View History

2017-05-08 16:49:56 +03:00
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS, TOKEN_MATCH
from .punctuation import TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES, TOKENIZER_INFIXES
from .stop_words import STOP_WORDS
2017-05-08 23:29:04 +03:00
from ...language import Language
class HungarianDefaults(Language.Defaults):
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
prefixes = TOKENIZER_PREFIXES
suffixes = TOKENIZER_SUFFIXES
infixes = TOKENIZER_INFIXES
token_match = TOKEN_MATCH
stop_words = STOP_WORDS
2017-05-03 12:01:42 +03:00
class Hungarian(Language):
lang = "hu"
Defaults = HungarianDefaults
2017-05-03 12:01:42 +03:00
__all__ = ["Hungarian"]