| 45 | } |
| 46 | |
| 47 | std::vector<std::pair<std::string, tomoto::Float>> HPAModelObject::getTopicWords(size_t topicId, size_t topN) const |
| 48 | { |
| 49 | auto* inst = getInst<tomoto::IHPAModel>(); |
| 50 | if (topicId > inst->getK() + inst->getK2()) throw py::ValueError{ "must topic_id < 1 + K1 + K2" }; |
| 51 | return inst->getWordsByTopicSorted(topicId, topN); |
| 52 | } |
| 53 | |
| 54 | std::vector<float> HPAModelObject::getTopicWordDist(size_t topicId, bool normalize) const |
| 55 | { |
nothing calls this directly
no test coverage detected