mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-15 14:17:58 +03:00
Fix parser model for depth 1
This commit is contained in:
parent
9e32d8271c
commit
9ca109597d
|
@ -48,8 +48,8 @@ cdef WeightsC get_c_weights(model) except *:
|
||||||
output.hidden_weights = NULL
|
output.hidden_weights = NULL
|
||||||
output.hidden_bias = NULL
|
output.hidden_bias = NULL
|
||||||
else:
|
else:
|
||||||
vec2scores_W = model.vec2scores.b
|
vec2scores_W = model.vec2scores.W
|
||||||
vec2scores_b = model.vec2scores.W
|
vec2scores_b = model.vec2scores.b
|
||||||
output.hidden_weights = <const float*>vec2scores_W.data
|
output.hidden_weights = <const float*>vec2scores_W.data
|
||||||
output.hidden_bias = <const float*>vec2scores_b.data
|
output.hidden_bias = <const float*>vec2scores_b.data
|
||||||
cdef np.ndarray class_mask = model._class_mask
|
cdef np.ndarray class_mask = model._class_mask
|
||||||
|
|
Loading…
Reference in New Issue
Block a user