* Set is_parsed flag in Parser.pipe

This commit is contained in:
Matthew Honnibal 2016-02-05 19:50:11 +01:00
parent 7119e77fb6
commit bdd579db0a

View File

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