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 ...symbols import ORTH
from spacy.lang.tokenizer_exceptions import BASE_EXCEPTIONS from ...util import update_exc
from spacy.util import update_exc from ..tokenizer_exceptions import BASE_EXCEPTIONS
from spacy.symbols import ORTH
_exc = {} _exc = {}

View File

@ -1,4 +1,4 @@
from spacy.lang.char_classes import ( from ..char_classes import (
ALPHA, ALPHA,
ALPHA_LOWER, ALPHA_LOWER,
ALPHA_UPPER, ALPHA_UPPER,
@ -12,7 +12,7 @@ from spacy.lang.char_classes import (
PUNCT, PUNCT,
UNITS, UNITS,
) )
from spacy.lang.punctuation import TOKENIZER_SUFFIXES from ..punctuation import TOKENIZER_SUFFIXES
_quotes = CONCAT_QUOTES.replace("'", "") _quotes = CONCAT_QUOTES.replace("'", "")
_list_punct = [x for x in LIST_PUNCT if x != "#"] _list_punct = [x for x in LIST_PUNCT if x != "#"]

View File

@ -1,6 +1,6 @@
from spacy.symbols import NORM, ORTH from ...symbols import NORM, ORTH
from spacy.util import update_exc from ...util import update_exc
from spacy.lang.tokenizer_exceptions import BASE_EXCEPTIONS from ..tokenizer_exceptions import BASE_EXCEPTIONS
_exc = {} _exc = {}