spaCy/spacy/hu/__init__.py

23 lines
579 B
Python

from __future__ import unicode_literals, print_function
from .language_data import *
from ..attrs import LANG
from ..language import Language
class Hungarian(Language):
lang = 'hu'
class Defaults(Language.Defaults):
tokenizer_exceptions = dict(TOKENIZER_EXCEPTIONS)
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
lex_attr_getters[LANG] = lambda text: 'hu'
prefixes = tuple(TOKENIZER_PREFIXES)
suffixes = tuple(TOKENIZER_SUFFIXES)
infixes = tuple(TOKENIZER_INFIXES)
stop_words = set(STOP_WORDS)