| 801 | } |
| 802 | |
| 803 | py::UniqueCObj<DocumentObject> CorpusIterObject::iternext() |
| 804 | { |
| 805 | if (idx >= corpus->len()) throw py::ExcPropagation{}; |
| 806 | py::UniqueObj args = py::buildPyTuple(corpus); |
| 807 | auto doc = py::makeNewObject<DocumentObject>(getDocumentCls()); |
| 808 | if (!doc) throw py::ExcPropagation{}; |
| 809 | doc->corpus = corpus.copy(); |
| 810 | doc->doc = corpus->getDoc(idx); |
| 811 | idx++; |
| 812 | return doc; |
| 813 | } |
| 814 | |
| 815 | DocWordIterator wordBegin(const tomoto::RawDocKernel* doc, bool independent) |
| 816 | { |
nothing calls this directly
no test coverage detected