From c99a65307037440406a3b35d04440bb671e931d8 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 29 Jul 2020 14:38:15 +0200 Subject: [PATCH] Adjust textcat model --- spacy/ml/models/textcat.py | 1 - 1 file changed, 1 deletion(-) diff --git a/spacy/ml/models/textcat.py b/spacy/ml/models/textcat.py index 139917581..53200c165 100644 --- a/spacy/ml/models/textcat.py +++ b/spacy/ml/models/textcat.py @@ -158,7 +158,6 @@ def build_text_classifier_lowdata(width, pretrained_vectors, dropout, nO=None): model = ( StaticVectors(width) >> list2ragged() - >> with_ragged(0, Linear(width, vector_dim)) >> ParametricAttention(width) >> reduce_sum() >> residual(Relu(width, width)) ** 2