Skip to content

Commit

Permalink
Added gd language folder (explosion#13570)
Browse files Browse the repository at this point in the history
Implemented a foundational Scottish Gaelic (gd) language option with tokenizer_exceptions and stop_words files.
  • Loading branch information
markliberko authored Sep 9, 2024
1 parent 319e025 commit 55db9c2
Show file tree
Hide file tree
Showing 3 changed files with 2,386 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spacy/lang/gd/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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"]
Loading

0 comments on commit 55db9c2

Please sign in to comment.