| 53 | } |
| 54 | |
| 55 | std::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 | |
| 63 | std::vector<std::pair<std::string, tomoto::Float>> PAModelObject::getTopicWords(size_t topicId, size_t topN) const |
| 64 | { |
nothing calls this directly
no test coverage detected