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

Method getTopicLabelDict

src/python/handler/py_LLDA.cpp:118–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

getLabelsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected