mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
use proper c-array
This commit is contained in:
parent
afaf41f794
commit
3dadad8d55
|
@ -133,7 +133,7 @@ cdef void predict_states(
|
|||
)
|
||||
# Add bias
|
||||
for i in range(n.states):
|
||||
saxpy(cblas)(n.classes, 1., W.hidden_bias, 1, &scores[i*n.classes], 1)
|
||||
saxpy(cblas)(n.classes, 1., W.hidden_bias, 1, &A.scores[i*n.classes], 1)
|
||||
# Set unseen classes to minimum value
|
||||
i = 0
|
||||
min_ = A.scores[0]
|
||||
|
|
Loading…
Reference in New Issue
Block a user