spaCy/spacy/lang/it/__init__.py

20 lines
470 B
Python
Raw Normal View History

2017-05-08 16:50:17 +03:00
from .stop_words import STOP_WORDS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .punctuation import TOKENIZER_PREFIXES, TOKENIZER_INFIXES
2017-05-08 23:29:04 +03:00
from ...language import Language
2015-09-06 23:10:37 +03:00
class ItalianDefaults(Language.Defaults):
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
stop_words = STOP_WORDS
prefixes = TOKENIZER_PREFIXES
infixes = TOKENIZER_INFIXES
2016-11-02 21:56:32 +03:00
2017-05-03 12:01:42 +03:00
class Italian(Language):
lang = "it"
Defaults = ItalianDefaults
2017-05-03 12:01:42 +03:00
__all__ = ["Italian"]