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

Method getTopicWordDist

src/python/handler/py_MGLDA.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99std::vector<float> MGLDAModelObject::getTopicWordDist(size_t topicId, bool normalize) const
100{
101 auto* inst = getInst<tomoto::IMGLDAModel>();
102 if (topicId >= inst->getK() + inst->getKL()) throw py::ValueError{ "must topic_id < KG + KL" };
103
104 return inst->getWidsByTopic(topicId, normalize);
105}
106
107py::UniqueObj DocumentObject::getWindows() const
108{

Callers

nothing calls this directly

Calls 2

getWidsByTopicMethod · 0.80
getKMethod · 0.45

Tested by

no test coverage detected