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

Method getSubTopics

src/python/handler/py_PA.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55std::vector<std::pair<tomoto::Tid, tomoto::Float>> PAModelObject::getSubTopics(size_t topicId, size_t topN) const
56{
57 auto* inst = getInst<tomoto::IPAModel>();
58 if (topicId >= inst->getK()) throw py::ValueError{ "must topic_id < k1" };
59
60 return inst->getSubTopicBySuperTopicSorted(topicId, topN);
61}
62
63std::vector<std::pair<std::string, tomoto::Float>> PAModelObject::getTopicWords(size_t topicId, size_t topN) const
64{

Callers

nothing calls this directly

Calls 4

isIndependentMethod · 0.80
getKMethod · 0.45

Tested by

no test coverage detected