* Set is_parsed flag in Parser.pipe

This commit is contained in:
Matthew Honnibal 2016-02-05 19:51:44 +01:00
parent bdd579db0a
commit 165ca28b80
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ cdef class Parser:
for i in range(batch_size): for i in range(batch_size):
self.parseC(doc_ptr[i], lengths[i], nr_feat, nr_class) self.parseC(doc_ptr[i], lengths[i], nr_feat, nr_class)
for doc in queue: for doc in queue:
doc.is_parsed = True
yield doc yield doc
PyErr_CheckSignals() PyErr_CheckSignals()