Fix thinc imports

This commit is contained in:
Matthew Honnibal 2017-10-03 19:21:26 +02:00
parent cbb1fbef80
commit 4a59f6358c
3 changed files with 10 additions and 4 deletions

View File

@ -4,7 +4,6 @@
from __future__ import unicode_literals
from thinc.api import chain, layerize, with_getitem
from thinc.neural import Model, Softmax
import numpy
cimport numpy as np
import cytoolz
@ -14,7 +13,10 @@ import ujson
import msgpack
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.util import to_categorical

View File

@ -38,7 +38,10 @@ from preshed.maps cimport MapStruct
from preshed.maps cimport map_get
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.selu import SELU
from thinc.neural._classes.layernorm import LayerNorm

View File

@ -9,7 +9,8 @@ from .util import get_doc
from pathlib import Path
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