MCPcopy Create free account
hub / github.com/bab2min/tomotopy / iternext

Method iternext

src/python/handler/py_utils.cpp:803–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801}
802
803py::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
815DocWordIterator wordBegin(const tomoto::RawDocKernel* doc, bool independent)
816{

Callers

nothing calls this directly

Calls 5

buildPyTupleFunction · 0.85
getDocumentClsFunction · 0.85
lenMethod · 0.45
copyMethod · 0.45
getDocMethod · 0.45

Tested by

no test coverage detected