| 69 | } |
| 70 | |
| 71 | std::vector<float> PAModelObject::getTopicWordDist(size_t topicId, bool normalize) const |
| 72 | { |
| 73 | auto* inst = getInst<tomoto::IPAModel>(); |
| 74 | if (topicId >= inst->getK2()) throw py::ValueError{ "must topic_id < k2" }; |
| 75 | return inst->getWidsByTopic(topicId, normalize); |
| 76 | } |
| 77 | |
| 78 | std::vector<std::pair<tomoto::Tid, tomoto::Float>> DocumentObject::getSubTopics(size_t topN) const |
| 79 | { |
nothing calls this directly
no test coverage detected