mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
993b0fab0e
* Add ancient Greek language support Initial commit * Contributor Agreement * grc tokenizer test added and files formatted with black, unnecessary import removed Co-Authored-By: Sofie Van Landeghem <svlandeg@users.noreply.github.com> * Commas in lists fixed. __init__py added to test * Update lex_attrs.py * Update stop_words.py * Update stop_words.py Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
19 lines
428 B
Python
19 lines
428 B
Python
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
|
|
from .stop_words import STOP_WORDS
|
|
from .lex_attrs import LEX_ATTRS
|
|
from ...language import Language
|
|
|
|
|
|
class AncientGreekDefaults(Language.Defaults):
|
|
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
|
|
lex_attr_getters = LEX_ATTRS
|
|
stop_words = STOP_WORDS
|
|
|
|
|
|
class AncientGreek(Language):
|
|
lang = "grc"
|
|
Defaults = AncientGreekDefaults
|
|
|
|
|
|
__all__ = ["AncientGreek"]
|