mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
Fix loop typing, that caused error on windows
This commit is contained in:
parent
d4cfff0476
commit
906c50ac59
|
@ -422,9 +422,9 @@ cdef class Parser:
|
||||||
hW = <float*>hidden_weights.data
|
hW = <float*>hidden_weights.data
|
||||||
hb = <float*>hidden_bias.data
|
hb = <float*>hidden_bias.data
|
||||||
cdef int nr_hidden = hidden_weights.shape[0]
|
cdef int nr_hidden = hidden_weights.shape[0]
|
||||||
|
cdef int nr_task = states.size()
|
||||||
with nogil:
|
with nogil:
|
||||||
for i in cython.parallel.prange(states.size(), num_threads=2,
|
for i in cython.parallel.prange(nr_task, num_threads=2,
|
||||||
schedule='guided'):
|
schedule='guided'):
|
||||||
self._parseC(states[i],
|
self._parseC(states[i],
|
||||||
feat_weights, hW, hb,
|
feat_weights, hW, hb,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user