diff --git a/spacy/compat.py b/spacy/compat.py index 31b33e771..8dd3d6b03 100644 --- a/spacy/compat.py +++ b/spacy/compat.py @@ -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