From ff36cd43df80ddb90fe437b57d75be9bda747643 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 31 Jul 2016 11:42:44 +0200 Subject: [PATCH] Fix call to updateC --- spacy/syntax/_neural.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/_neural.pyx b/spacy/syntax/_neural.pyx index 814fa3af7..7ffab36a3 100644 --- a/spacy/syntax/_neural.pyx +++ b/spacy/syntax/_neural.pyx @@ -166,7 +166,7 @@ cdef class ParserNeuralNet(NeuralNet): memset(costs, 0, self.moves.n_moves) costs[clas] = grad self.updateC(features, - nr_feat, True, costs, is_valid, False, key=key[0]) + nr_feat, costs, is_valid, False, key=key[0]) moves.c[clas].do(stcls.c, self.moves.c[clas].label) # Build a hash of the state sequence. # Position 0 represents the previous sequence, position 1 the new class.