| 979 | } |
| 980 | |
| 981 | std::vector<std::pair<std::string, tomoto::Float>> DocumentObject::getWords(size_t topN) const |
| 982 | { |
| 983 | if (corpus->isIndependent()) throw py::RuntimeError{ "This method can only be called by documents bound to the topic model." }; |
| 984 | if (!corpus->tm->inst) throw py::RuntimeError{ "inst is null" }; |
| 985 | return corpus->tm->inst->getWordsByDocSorted(getBoundDoc(), topN); |
| 986 | } |
| 987 | |
| 988 | py::UniqueObj DocumentObject::getZ() const |
| 989 | { |
nothing calls this directly
no test coverage detected