| 61 | } |
| 62 | |
| 63 | std::vector<std::pair<std::string, tomoto::Float>> PAModelObject::getTopicWords(size_t topicId, size_t topN) const |
| 64 | { |
| 65 | auto* inst = getInst<tomoto::IPAModel>(); |
| 66 | if (topicId >= inst->getK2()) throw py::ValueError{ "must topic_id < k2" }; |
| 67 | |
| 68 | return inst->getWordsByTopicSorted(topicId, topN); |
| 69 | } |
| 70 | |
| 71 | std::vector<float> PAModelObject::getTopicWordDist(size_t topicId, bool normalize) const |
| 72 | { |
nothing calls this directly
no test coverage detected