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

Method getTopicWordDist

src/python/handler/py_PA.cpp:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71std::vector<float> PAModelObject::getTopicWordDist(size_t topicId, bool normalize) const
72{
73 auto* inst = getInst<tomoto::IPAModel>();
74 if (topicId >= inst->getK2()) throw py::ValueError{ "must topic_id < k2" };
75 return inst->getWidsByTopic(topicId, normalize);
76}
77
78std::vector<std::pair<tomoto::Tid, tomoto::Float>> DocumentObject::getSubTopics(size_t topN) const
79{

Callers

nothing calls this directly

Calls 1

getWidsByTopicMethod · 0.80

Tested by

no test coverage detected