From cabaadd793b785d4e3572f3851b5263345340394 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 6 Dec 2018 15:12:39 +0100 Subject: [PATCH] Fix build error from bad import Thinc v7.0.0.dev6 moved FeatureExtracter around and didn't add a compatibility import. --- spacy/_ml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/_ml.py b/spacy/_ml.py index b6bc1792b..3df9d72ba 100644 --- a/spacy/_ml.py +++ b/spacy/_ml.py @@ -8,8 +8,9 @@ from thinc.t2t import ExtractWindow, ParametricAttention from thinc.t2v import Pooling, sum_pool from thinc.misc import Residual from thinc.misc import LayerNorm as LN +from thinc.misc import FeatureExtracter from thinc.api import add, layerize, chain, clone, concatenate, with_flatten -from thinc.api import FeatureExtracter, with_getitem, flatten_add_lengths +from thinc.api import with_getitem, flatten_add_lengths from thinc.api import uniqued, wrap, noop from thinc.api import with_square_sequences from thinc.linear.linear import LinearModel