mirror of https://github.com/explosion/spaCy.git
Fix prange error for Windows
This commit is contained in:
parent
1ffc9a7fbf
commit
f730d07e4e
|
@ -419,7 +419,7 @@ cdef class Parser:
|
|||
cdef int has_hidden = not getattr(vec2scores, 'is_noop', False)
|
||||
while not next_step.empty():
|
||||
if not has_hidden:
|
||||
for i in cython.parallel.prange(
|
||||
for i in range(
|
||||
next_step.size(), num_threads=6, nogil=True):
|
||||
self._parse_step(next_step[i],
|
||||
feat_weights, nr_class, nr_feat, nr_piece)
|
||||
|
|
Loading…
Reference in New Issue