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

Method getUsedVocabs

src/python/handler/py_LDA.cpp:464–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464py::UniqueCObj<VocabObject> LDAModelObject::getUsedVocabs() const
465{
466 auto* inst = getInst<tomoto::ILDAModel>();
467 auto ret = py::makeNewObject<VocabObject>();
468 ret->dep = py::UniqueObj{ getObject() };
469 Py_INCREF(ret->dep);
470 ret->vocabs = (tomoto::Dictionary*)&inst->getVocabDict();
471 ret->size = inst->getV();
472 return ret;
473}
474
475py::UniqueObj LDAModelObject::getUsedVocabCf() const
476{

Callers

nothing calls this directly

Calls 1

getVMethod · 0.80

Tested by

no test coverage detected