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

Method getDoc

src/python/handler/py_utils.cpp:151–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151const tomoto::RawDocKernel* CorpusObject::getDoc(size_t idx) const
152{
153 if (isIndependent()) return &docs[idx];
154 if (made) return docsMade[idx].get();
155 else return tm->inst->getDoc(isSubDocs() ? docIdcs[idx] : idx);
156}
157
158CorpusObject::CorpusObject()
159{

Callers 7

CoherenceObjectMethod · 0.45
getitemMethod · 0.45
iternextMethod · 0.45
insertCorpusMethod · 0.45
addCorpusMethod · 0.45
operator*Method · 0.45
estimateContextsMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected