mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 01:32:32 +03:00
Fix thinc imports
This commit is contained in:
parent
cbb1fbef80
commit
4a59f6358c
|
@ -4,7 +4,6 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from thinc.api import chain, layerize, with_getitem
|
from thinc.api import chain, layerize, with_getitem
|
||||||
from thinc.neural import Model, Softmax
|
|
||||||
import numpy
|
import numpy
|
||||||
cimport numpy as np
|
cimport numpy as np
|
||||||
import cytoolz
|
import cytoolz
|
||||||
|
@ -14,7 +13,10 @@ import ujson
|
||||||
import msgpack
|
import msgpack
|
||||||
|
|
||||||
from thinc.api import add, layerize, chain, clone, concatenate, with_flatten
|
from thinc.api import add, layerize, chain, clone, concatenate, with_flatten
|
||||||
from thinc.neural import Model, Maxout, Softmax, Affine
|
from thinc.neural._classes.model import Model
|
||||||
|
from thinc.neural._classes.maxout import Maxout
|
||||||
|
from thinc.neural._classes.softmax import Softmax
|
||||||
|
from thinc.neural._classes.affine import Affine
|
||||||
from thinc.neural._classes.hash_embed import HashEmbed
|
from thinc.neural._classes.hash_embed import HashEmbed
|
||||||
from thinc.neural.util import to_categorical
|
from thinc.neural.util import to_categorical
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,10 @@ from preshed.maps cimport MapStruct
|
||||||
from preshed.maps cimport map_get
|
from preshed.maps cimport map_get
|
||||||
|
|
||||||
from thinc.api import layerize, chain, noop, clone, with_flatten
|
from thinc.api import layerize, chain, noop, clone, with_flatten
|
||||||
from thinc.neural import Model, Affine, ReLu, Maxout
|
from thinc.neural._classes.model import Model
|
||||||
|
from thinc.neural._classes.affine import Affine
|
||||||
|
from thinc.neural._classes.relu import ReLu
|
||||||
|
from thinc.neural._classes.maxout import Maxout
|
||||||
from thinc.neural._classes.batchnorm import BatchNorm as BN
|
from thinc.neural._classes.batchnorm import BatchNorm as BN
|
||||||
from thinc.neural._classes.selu import SELU
|
from thinc.neural._classes.selu import SELU
|
||||||
from thinc.neural._classes.layernorm import LayerNorm
|
from thinc.neural._classes.layernorm import LayerNorm
|
||||||
|
|
|
@ -9,7 +9,8 @@ from .util import get_doc
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import pytest
|
import pytest
|
||||||
from thinc.neural import Maxout, Softmax
|
from thinc.neural._classes.maxout import Maxout
|
||||||
|
from thinc.neural._classes.softmax import Softmax
|
||||||
from thinc.api import chain
|
from thinc.api import chain
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user