From 63bd87508d12ca3a55d6ab05834cf8e69cc5e21e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 23 Sep 2017 04:39:17 -0500 Subject: [PATCH] Don't use iterated convolutions --- spacy/_ml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/_ml.py b/spacy/_ml.py index 7cdf9c68b..3bb76c268 100644 --- a/spacy/_ml.py +++ b/spacy/_ml.py @@ -270,7 +270,7 @@ def Tok2Vec(width, embed_size, **kwargs): tok2vec = ( FeatureExtracter(cols) >> with_flatten( - embed >> (convolution * 4), pad=4) + embed >> (convolution ** 4), pad=4) ) # Work around thinc API limitations :(. TODO: Revise in Thinc 7