[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/nn and fo language extensions #13116

Merged
merged 15 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use relative imports
  • Loading branch information
lise-brinck committed Nov 7, 2023
commit 1582656175e7b19b92679d4ba8576d003e033a0c
7 changes: 3 additions & 4 deletions spacy/lang/fo/tokenizer_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Exceptions for the faroese tokenizer - mainly abbreviations copied from CD-ORD ressources"""
from spacy.lang.tokenizer_exceptions import BASE_EXCEPTIONS
from spacy.util import update_exc
from spacy.symbols import ORTH
from ...symbols import ORTH
from ...util import update_exc
from ..tokenizer_exceptions import BASE_EXCEPTIONS

_exc = {}

Expand Down
4 changes: 2 additions & 2 deletions spacy/lang/nn/punctuation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from spacy.lang.char_classes import (
from ..char_classes import (
ALPHA,
ALPHA_LOWER,
ALPHA_UPPER,
Expand All @@ -12,7 +12,7 @@
PUNCT,
UNITS,
)
from spacy.lang.punctuation import TOKENIZER_SUFFIXES
from ..punctuation import TOKENIZER_SUFFIXES

_quotes = CONCAT_QUOTES.replace("'", "")
_list_punct = [x for x in LIST_PUNCT if x != "#"]
Expand Down
6 changes: 3 additions & 3 deletions spacy/lang/nn/tokenizer_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from spacy.symbols import NORM, ORTH
from spacy.util import update_exc
from spacy.lang.tokenizer_exceptions import BASE_EXCEPTIONS
from ...symbols import NORM, ORTH
from ...util import update_exc
from ..tokenizer_exceptions import BASE_EXCEPTIONS

_exc = {}

Expand Down