                  doc.is_parsed = True
                  yield doc
          PyErr_CheckSignals()
  
      cdef void parseC(self, TokenC* tokens, int length, int nr_feat, int nr_class) nogil:
          cdef ExampleC eg
          eg.nr_feat = nr_feat
          eg.nr_atom = CONTEXT_SIZE
          eg.nr_class = nr_class
          eg.features = <FeatureC*>calloc(sizeof(FeatureC), nr_feat)
 
</s> remove         for i in range(batch_size):
            self.parseC(doc_ptr[i], lengths[i], nr_feat, nr_class)
            for doc in queue:
                doc.is_parsed = True
                yield doc
 </s> add         with nogil:
            for i in cython.parallel.prange(batch_size, num_threads=n_threads):
                status = self.parseC(doc_ptr[i], lengths[i], nr_feat, nr_class)
                if status != 0:
                    with gil:
                        sent_str = queue[i].text
                        raise ValueError("Error parsing doc: %s" % sent_str)
        for doc in queue:
            doc.is_parsed = True
            yield doc </s> remove     cdef void parseC(self, TokenC* tokens, int length, int nr_feat, int nr_class) nogil
 </s> add     cdef int parseC(self, TokenC* tokens, int length, int nr_feat, int nr_class) nogil </s> remove                 for i in cython.parallel.prange(batch_size, nogil=True,
                                                num_threads=n_threads):
                    self.parseC(doc_ptr[i], lengths[i], nr_feat, nr_class)
 </s> add                 with nogil:
                    for i in cython.parallel.prange(batch_size, num_threads=n_threads):
                        status = self.parseC(doc_ptr[i], lengths[i], nr_feat, nr_class)
                        if status != 0:
                            with gil:
                                sent_str = queue[i].text
                                raise ValueError("Error parsing doc: %s" % sent_str)
    cdef int parseC(self, TokenC* tokens, int length, int nr_feat, int nr_class) nogil:
                  doc.is_parsed = True
                  yield doc
          PyErr_CheckSignals()
  
    cdef int parseC(self, TokenC* tokens, int length, int nr_feat, int nr_class) nogil:
          cdef ExampleC eg
          eg.nr_feat = nr_feat
          eg.nr_atom = CONTEXT_SIZE
          eg.nr_class = nr_class
          eg.features = <FeatureC*>calloc(sizeof(FeatureC), nr_feat)
keep keep keep keep replace keep keep keep keep keep
 * Check for errors in parser, and parallelise the left-over batch 
spacy/syntax/parser.pyx