Fix import of Optimizer

This commit is contained in:
Matthew Honnibal 2017-10-27 12:33:42 +00:00
parent 4d048e94d3
commit 19a2b9bf27

View File

@ -31,9 +31,9 @@ except ImportError:
cupy = None
try:
from thinc.optimizers import Optimizer
from thinc.neural.optimizers import Optimizer
except ImportError:
from thinc.optimizers import Adam as Optimizer
from thinc.neural.optimizers import Adam as Optimizer
pickle = pickle
copy_reg = copy_reg