Fix import of Optimizer
@@ -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
