spaCy/spacy/lang/fi/__init__.py

22 lines
536 B
Python
Raw Normal View History

2017-05-08 13:48:31 +00:00
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .stop_words import STOP_WORDS
from .lex_attrs import LEX_ATTRS
from .punctuation import TOKENIZER_INFIXES, TOKENIZER_SUFFIXES
2017-05-08 20:29:04 +00:00
from ...language import Language
2017-01-31 22:27:29 +00:00
class FinnishDefaults(Language.Defaults):
infixes = TOKENIZER_INFIXES
suffixes = TOKENIZER_SUFFIXES
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS
2017-01-31 22:27:29 +00:00
class Finnish(Language):
lang = "fi"
Defaults = FinnishDefaults
2017-05-03 09:01:42 +00:00
__all__ = ["Finnish"]