mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-04 12:20:20 +03:00
Fix imports
This commit is contained in:
parent
92a8ad8fa7
commit
77e696220f
|
@ -3,7 +3,7 @@ from typing import Callable, List, Tuple
|
||||||
from thinc.api import Model, chain, with_array
|
from thinc.api import Model, chain, with_array
|
||||||
from thinc.types import Floats1d, Floats2d
|
from thinc.types import Floats1d, Floats2d
|
||||||
|
|
||||||
from spacy.tokens import Doc
|
from ...tokens import Doc
|
||||||
|
|
||||||
from ...util import registry
|
from ...util import registry
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,8 @@ __all__ = [
|
||||||
"SentenceRecognizer",
|
"SentenceRecognizer",
|
||||||
"Sentencizer",
|
"Sentencizer",
|
||||||
"SpanCategorizer",
|
"SpanCategorizer",
|
||||||
"SpanRuler",
|
|
||||||
"SpanFinder",
|
"SpanFinder",
|
||||||
|
"SpanRuler",
|
||||||
"Tagger",
|
"Tagger",
|
||||||
"TextCategorizer",
|
"TextCategorizer",
|
||||||
"Tok2Vec",
|
"Tok2Vec",
|
||||||
|
|
|
@ -3,12 +3,12 @@ from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple
|
||||||
from thinc.api import Config, Model, Optimizer, set_dropout_rate
|
from thinc.api import Config, Model, Optimizer, set_dropout_rate
|
||||||
from thinc.types import Floats2d
|
from thinc.types import Floats2d
|
||||||
|
|
||||||
from spacy.language import Language
|
from ..language import Language
|
||||||
from spacy.pipeline.trainable_pipe import TrainablePipe
|
from .trainable_pipe import TrainablePipe
|
||||||
from spacy.scorer import Scorer
|
from ..scorer import Scorer
|
||||||
from spacy.tokens import Doc, Span
|
from ..tokens import Doc, Span
|
||||||
from spacy.training import Example
|
from ..training import Example
|
||||||
from spacy.errors import Errors
|
from ..errors import Errors
|
||||||
|
|
||||||
from ..util import registry
|
from ..util import registry
|
||||||
from .spancat import DEFAULT_SPANS_KEY
|
from .spancat import DEFAULT_SPANS_KEY
|
||||||
|
|
Loading…
Reference in New Issue
Block a user