| 986 | } |
| 987 | |
| 988 | py::UniqueObj DocumentObject::getZ() const |
| 989 | { |
| 990 | if (corpus->isIndependent()) throw py::AttributeError{ "doc has no `topics` field!" }; |
| 991 | if (!doc) throw py::RuntimeError{ "doc is null!" }; |
| 992 | if (auto ret = getZFromHLDA()) return ret; |
| 993 | if (auto ret = getZFromHDP()) return ret; |
| 994 | if (auto ret = getZFromLDA()) return ret; |
| 995 | throw py::AttributeError{ "doc has no `topics` field!" }; |
| 996 | } |
| 997 | |
| 998 | std::string_view DocumentObject::getMetadata() const |
| 999 | { |
nothing calls this directly
no test coverage detected