* Don't release the gil around Parser.parse. Does this indicate thread problems?

This commit is contained in:
Matthew Honnibal 2015-07-17 23:07:37 +02:00
parent a6ff7e6ca4
commit fb0a641a2d

View File

@ -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: