| 56 | } |
| 57 | |
| 58 | std::vector<float> DocumentObject::getTopicDistFromPseudoDoc(bool normalize) const |
| 59 | { |
| 60 | auto* mdl = corpus->tm->getInstDynamic<tomoto::IPTModel>(); |
| 61 | if (!mdl) throw py::ValueError{ "`from_pseudo_doc` is valid for only `tomotopy.PTModel`." }; |
| 62 | return mdl->getTopicsByDoc(getBoundDoc(), normalize); |
| 63 | } |
nothing calls this directly
no test coverage detected