mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
isort
This commit is contained in:
parent
8d89d58185
commit
eba298edea
|
@ -28,10 +28,9 @@ from spacy.tokens import Doc, DocBin
|
||||||
from spacy.training import Example
|
from spacy.training import Example
|
||||||
from spacy.training.initialize import init_nlp
|
from spacy.training.initialize import init_nlp
|
||||||
|
|
||||||
from ..util import make_tempdir
|
|
||||||
|
|
||||||
# Ensure that the architecture gets added to the registry.
|
# Ensure that the architecture gets added to the registry.
|
||||||
from ..tok2vec import build_lazy_init_tok2vec as _
|
from ..tok2vec import build_lazy_init_tok2vec as _
|
||||||
|
from ..util import make_tempdir
|
||||||
|
|
||||||
TRAIN_DATA_SINGLE_LABEL = [
|
TRAIN_DATA_SINGLE_LABEL = [
|
||||||
("I'm so happy.", {"cats": {"POSITIVE": 1.0, "NEGATIVE": 0.0}}),
|
("I'm so happy.", {"cats": {"POSITIVE": 1.0, "NEGATIVE": 0.0}}),
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from spacy.util import registry
|
|
||||||
from thinc.types import Floats2d
|
|
||||||
from spacy.tokens import Doc
|
|
||||||
from thinc.api import Model
|
from thinc.api import Model
|
||||||
|
from thinc.types import Floats2d
|
||||||
|
|
||||||
|
from spacy.tokens import Doc
|
||||||
|
from spacy.util import registry
|
||||||
|
|
||||||
|
|
||||||
@registry.architectures("LazyInitTok2Vec.v1")
|
@registry.architectures("LazyInitTok2Vec.v1")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user