mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-25 00:34:20 +03:00
* Set is_parsed flag in Parser.pipe
This commit is contained in:
parent
7119e77fb6
commit
bdd579db0a
|
@ -134,6 +134,7 @@ cdef class Parser:
|
||||||
self.parseC(doc_ptr[i], lengths[i], nr_feat, nr_class)
|
self.parseC(doc_ptr[i], lengths[i], nr_feat, nr_class)
|
||||||
PyErr_CheckSignals()
|
PyErr_CheckSignals()
|
||||||
for doc in queue:
|
for doc in queue:
|
||||||
|
doc.is_parsed = True
|
||||||
yield doc
|
yield doc
|
||||||
queue = []
|
queue = []
|
||||||
batch_size = len(queue)
|
batch_size = len(queue)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user