mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-03 22:06:37 +03:00
55db9c2e87
Implemented a foundational Scottish Gaelic (gd) language option with tokenizer_exceptions and stop_words files.
19 lines
383 B
Python
19 lines
383 B
Python
from typing import Optional
|
|
|
|
from ...language import BaseDefaults, Language
|
|
from .stop_words import STOP_WORDS
|
|
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
|
|
|
|
|
|
class ScottishDefaults(BaseDefaults):
|
|
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
|
|
stop_words = STOP_WORDS
|
|
|
|
|
|
class Scottish(Language):
|
|
lang = "gd"
|
|
Defaults = ScottishDefaults
|
|
|
|
|
|
__all__ = ["Scottish"]
|