mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
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)
|
cdef int has_hidden = not getattr(vec2scores, 'is_noop', False)
|
||||||
while not next_step.empty():
|
while not next_step.empty():
|
||||||
if not has_hidden:
|
if not has_hidden:
|
||||||
for i in cython.parallel.prange(
|
for i in range(
|
||||||
next_step.size(), num_threads=6, nogil=True):
|
next_step.size(), num_threads=6, nogil=True):
|
||||||
self._parse_step(next_step[i],
|
self._parse_step(next_step[i],
|
||||||
feat_weights, nr_class, nr_feat, nr_piece)
|
feat_weights, nr_class, nr_feat, nr_piece)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user