spaCy/spacy/hu/__init__.py

24 lines
596 B
Python
Raw Normal View History

2016-12-23 23:21:00 +00:00
# encoding: utf8
from __future__ import unicode_literals, print_function
2016-12-20 21:28:20 +00:00
from .language_data import *
from ..attrs import LANG
from ..language import Language
class Hungarian(Language):
lang = 'hu'
class Defaults(Language.Defaults):
2016-12-20 21:28:20 +00:00
tokenizer_exceptions = dict(TOKENIZER_EXCEPTIONS)
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
lex_attr_getters[LANG] = lambda text: 'hu'
2016-12-20 21:28:20 +00:00
prefixes = tuple(TOKENIZER_PREFIXES)
2016-12-20 21:28:20 +00:00
suffixes = tuple(TOKENIZER_SUFFIXES)
2016-12-20 21:28:20 +00:00
infixes = tuple(TOKENIZER_INFIXES)
2016-12-20 21:28:20 +00:00
stop_words = set(STOP_WORDS)