mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 20:28:20 +03:00
22 lines
575 B
Python
22 lines
575 B
Python
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS, TOKEN_MATCH
|
|
from .punctuation import TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES, TOKENIZER_INFIXES
|
|
from .stop_words import STOP_WORDS
|
|
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
|
|
|
|
|
|
class Hungarian(Language):
|
|
lang = "hu"
|
|
Defaults = HungarianDefaults
|
|
|
|
|
|
__all__ = ["Hungarian"]
|