use relative imports

This commit is contained in:
Lise Brinck 2023-11-07 13:17:11 +01:00
parent 15da3da8b4
commit 1582656175
3 changed files with 8 additions and 9 deletions

View File

@ -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 = {}

View File

@ -1,4 +1,4 @@
from spacy.lang.char_classes import (
from ..char_classes import (
ALPHA,
ALPHA_LOWER,
ALPHA_UPPER,
@ -12,7 +12,7 @@ from spacy.lang.char_classes import (
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 != "#"]

View File

@ -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 = {}