spaCy/spacy/lang/hu/__init__.py

22 lines
575 B
Python
Raw Normal View History

2017-05-08 13:49:56 +00: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 20:29:04 +00: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 09:01:42 +00:00
class Hungarian(Language):
lang = "hu"
Defaults = HungarianDefaults
2017-05-03 09:01:42 +00:00
__all__ = ["Hungarian"]