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

Method getTopicLabelDict

src/python/handler/py_PLDA.cpp:117–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117py::UniqueCObj<VocabObject> PLDAModelObject::getTopicLabelDict() const
118{
119 auto* inst = getInst<tomoto::IPLDAModel>();
120 auto ret = py::makeNewObject<VocabObject>();
121 ret->dep = py::UniqueObj{ getObject() };
122 Py_INCREF(ret->dep);
123 ret->vocabs = const_cast<tomoto::Dictionary*>(&inst->getTopicLabelDict());
124 ret->size = -1;
125 return ret;
126}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected