mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix import of Optimizer
This commit is contained in:
parent
4d048e94d3
commit
19a2b9bf27
|
@ -31,9 +31,9 @@ except ImportError:
|
||||||
cupy = None
|
cupy = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from thinc.optimizers import Optimizer
|
from thinc.neural.optimizers import Optimizer
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from thinc.optimizers import Adam as Optimizer
|
from thinc.neural.optimizers import Adam as Optimizer
|
||||||
|
|
||||||
pickle = pickle
|
pickle = pickle
|
||||||
copy_reg = copy_reg
|
copy_reg = copy_reg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user