mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-27 08:29:51 +03:00
use relative imports
This commit is contained in:
parent
15da3da8b4
commit
1582656175
|
@ -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 = {}
|
||||||
|
|
||||||
|
|
|
@ -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 != "#"]
|
||||||
|
|
|
@ -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 = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user