mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +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,
|
||||
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)
|
||||
|
||||
cdef void parse(self, StateClass stcls, ExampleC eg) nogil:
|
||||
|
|
Loading…
Reference in New Issue
Block a user