From 19a2b9bf27f768a2c3f8c8033b1679e950b493a6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 27 Oct 2017 12:33:42 +0000 Subject: [PATCH] Fix import of Optimizer --- spacy/compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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