| 45 | } |
| 46 | |
| 47 | std::vector<float> PAModelObject::getSubTopicPrior(size_t topicId, bool normalize) const |
| 48 | { |
| 49 | auto* inst = getInst<tomoto::IPAModel>(); |
| 50 | if (topicId >= inst->getK()) throw py::ValueError{ "must topic_id < k1" }; |
| 51 | |
| 52 | return inst->getSubTopicBySuperTopic(topicId, normalize); |
| 53 | } |
| 54 | |
| 55 | std::vector<std::pair<tomoto::Tid, tomoto::Float>> PAModelObject::getSubTopics(size_t topicId, size_t topN) const |
| 56 | { |
nothing calls this directly
no test coverage detected