spaCy/spacy/lang/fi/__init__.py

22 lines
536 B
Python
Raw Normal View History

2017-05-08 16:48:31 +03: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 23:29:04 +03:00
from ...language import Language
2017-02-01 01:27:29 +03: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-02-01 01:27:29 +03:00
class Finnish(Language):
lang = "fi"
Defaults = FinnishDefaults
2017-05-03 12:01:42 +03:00
__all__ = ["Finnish"]