| 89 | } |
| 90 | |
| 91 | std::vector<std::pair<std::string, tomoto::Float>> MGLDAModelObject::getTopicWords(size_t topicId, size_t topN) const |
| 92 | { |
| 93 | auto* inst = getInst<tomoto::IMGLDAModel>(); |
| 94 | if (topicId >= inst->getK() + inst->getKL()) throw py::ValueError{ "must topic_id < KG + KL" }; |
| 95 | |
| 96 | return inst->getWordsByTopicSorted(topicId, topN); |
| 97 | } |
| 98 | |
| 99 | std::vector<float> MGLDAModelObject::getTopicWordDist(size_t topicId, bool normalize) const |
| 100 | { |
nothing calls this directly
no test coverage detected