MCPcopy Create free account
hub / github.com/bab2min/tomotopy / getZ

Method getZ

src/python/handler/py_utils.cpp:988–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988py::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
998std::string_view DocumentObject::getMetadata() const
999{

Callers

nothing calls this directly

Calls 1

isIndependentMethod · 0.80

Tested by

no test coverage detected