mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
27 lines
677 B
Python
27 lines
677 B
Python
# encoding: utf8
|
|
from __future__ import unicode_literals, print_function
|
|
|
|
from .tokenizer_exceptions import TOKEN_MATCH
|
|
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)
|
|
|
|
token_match = TOKEN_MATCH
|