mirror of https://github.com/explosion/spaCy.git
Fix parser for Thinc 6.11
This commit is contained in:
parent
3cdfe1ee4d
commit
9a389c4490
|
@ -463,7 +463,9 @@ cdef class Parser:
|
||||||
which = Vec.arg_max(&unmaxed[index], nr_piece)
|
which = Vec.arg_max(&unmaxed[index], nr_piece)
|
||||||
state_vector[j] = unmaxed[index + which]
|
state_vector[j] = unmaxed[index + which]
|
||||||
# Compute hidden-to-output
|
# Compute hidden-to-output
|
||||||
MatVec.batch_dot(scores,
|
# TODO: These methods in Thinc are confusing at the moment, and
|
||||||
|
# quite backwards. But this currently does what we need.
|
||||||
|
MatVec.batch_T_dot(scores,
|
||||||
hW, vectors, nr_class, nr_hidden, nr_todo)
|
hW, vectors, nr_class, nr_hidden, nr_todo)
|
||||||
# Add bias
|
# Add bias
|
||||||
for i in range(nr_todo):
|
for i in range(nr_todo):
|
||||||
|
|
Loading…
Reference in New Issue