| 97 | } |
| 98 | |
| 99 | std::vector<float> MGLDAModelObject::getTopicWordDist(size_t topicId, bool normalize) const |
| 100 | { |
| 101 | auto* inst = getInst<tomoto::IMGLDAModel>(); |
| 102 | if (topicId >= inst->getK() + inst->getKL()) throw py::ValueError{ "must topic_id < KG + KL" }; |
| 103 | |
| 104 | return inst->getWidsByTopic(topicId, normalize); |
| 105 | } |
| 106 | |
| 107 | py::UniqueObj DocumentObject::getWindows() const |
| 108 | { |
nothing calls this directly
no test coverage detected