Fix parser for Thinc 6.11

This commit is contained in:
Matthew Honnibal 2018-03-16 10:38:13 +01:00
parent 3cdfe1ee4d
commit 9a389c4490
1 changed files with 3 additions and 1 deletions

View File

@ -463,7 +463,9 @@ cdef class Parser:
which = Vec.arg_max(&unmaxed[index], nr_piece)
state_vector[j] = unmaxed[index + which]
# 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)
# Add bias
for i in range(nr_todo):