diff --git a/spacy/lang/ht/__init__.py b/spacy/lang/ht/__init__.py index 9fc2df40c..7f9feb057 100644 --- a/spacy/lang/ht/__init__.py +++ b/spacy/lang/ht/__init__.py @@ -5,11 +5,11 @@ from thinc.api import Model from ...language import BaseDefaults, Language from .lemmatizer import HaitianCreoleLemmatizer from .lex_attrs import LEX_ATTRS -from .punctuation import TOKENIZER_PREFIXES, TOKENIZER_INFIXES, TOKENIZER_SUFFIXES +from .punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES from .stop_words import STOP_WORDS from .syntax_iterators import SYNTAX_ITERATORS -from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .tag_map import TAG_MAP +from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS class HaitianCreoleDefaults(BaseDefaults): diff --git a/spacy/lang/ht/lemmatizer.py b/spacy/lang/ht/lemmatizer.py index 9ac096f6d..52bf23d23 100644 --- a/spacy/lang/ht/lemmatizer.py +++ b/spacy/lang/ht/lemmatizer.py @@ -1,8 +1,8 @@ from typing import List, Tuple +from ...lookups import Lookups from ...pipeline import Lemmatizer from ...tokens import Token -from ...lookups import Lookups class HaitianCreoleLemmatizer(Lemmatizer): diff --git a/spacy/lang/ht/punctuation.py b/spacy/lang/ht/punctuation.py index 0077db1c0..c4a5d090e 100644 --- a/spacy/lang/ht/punctuation.py +++ b/spacy/lang/ht/punctuation.py @@ -4,10 +4,10 @@ from ..char_classes import ( ALPHA_UPPER, CONCAT_QUOTES, HYPHENS, - LIST_PUNCT, - LIST_QUOTES, LIST_ELLIPSES, LIST_ICONS, + LIST_PUNCT, + LIST_QUOTES, merge_chars, ) diff --git a/spacy/lang/ht/tag_map.py b/spacy/lang/ht/tag_map.py index 261d1aef3..a190984a6 100644 --- a/spacy/lang/ht/tag_map.py +++ b/spacy/lang/ht/tag_map.py @@ -1,20 +1,20 @@ from spacy.symbols import ( - NOUN, - VERB, - AUX, ADJ, - ADV, - PRON, - DET, ADP, - SCONJ, + ADV, + AUX, CCONJ, - PART, + DET, INTJ, + NOUN, NUM, + PART, + PRON, PROPN, PUNCT, + SCONJ, SYM, + VERB, X, ) diff --git a/spacy/lang/ht/tokenizer_exceptions.py b/spacy/lang/ht/tokenizer_exceptions.py index 4d617fd36..deb152c25 100644 --- a/spacy/lang/ht/tokenizer_exceptions.py +++ b/spacy/lang/ht/tokenizer_exceptions.py @@ -1,4 +1,4 @@ -from spacy.symbols import ORTH, NORM +from spacy.symbols import NORM, ORTH def make_variants(base, first_norm, second_orth, second_norm): diff --git a/spacy/tests/lang/ht/test_noun_chunks.py b/spacy/tests/lang/ht/test_noun_chunks.py index 76c5a1df3..fcefd7dfd 100644 --- a/spacy/tests/lang/ht/test_noun_chunks.py +++ b/spacy/tests/lang/ht/test_noun_chunks.py @@ -1,4 +1,5 @@ import pytest + from spacy.tokens import Doc