mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Fix call to updateC
This commit is contained in:
parent
e38632003d
commit
ff36cd43df
|
@ -166,7 +166,7 @@ cdef class ParserNeuralNet(NeuralNet):
|
||||||
memset(costs, 0, self.moves.n_moves)
|
memset(costs, 0, self.moves.n_moves)
|
||||||
costs[clas] = grad
|
costs[clas] = grad
|
||||||
self.updateC(features,
|
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)
|
moves.c[clas].do(stcls.c, self.moves.c[clas].label)
|
||||||
# Build a hash of the state sequence.
|
# Build a hash of the state sequence.
|
||||||
# Position 0 represents the previous sequence, position 1 the new class.
|
# Position 0 represents the previous sequence, position 1 the new class.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user