mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
* Don't release the gil around Parser.parse. Does this indicate thread problems?
This commit is contained in:
parent
a6ff7e6ca4
commit
fb0a641a2d
|
@ -85,8 +85,7 @@ cdef class Parser:
|
||||||
|
|
||||||
cdef Example eg = Example(self.model.n_classes, CONTEXT_SIZE,
|
cdef Example eg = Example(self.model.n_classes, CONTEXT_SIZE,
|
||||||
self.model.n_feats, self.model.n_feats)
|
self.model.n_feats, self.model.n_feats)
|
||||||
with nogil:
|
self.parse(stcls, eg.c)
|
||||||
self.parse(stcls, eg.c)
|
|
||||||
tokens.set_parse(stcls._sent)
|
tokens.set_parse(stcls._sent)
|
||||||
|
|
||||||
cdef void parse(self, StateClass stcls, ExampleC eg) nogil:
|
cdef void parse(self, StateClass stcls, ExampleC eg) nogil:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user