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

Method getMetadata

src/python/handler/py_utils.cpp:998–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

996}
997
998std::string_view DocumentObject::getMetadata() const
999{
1000 if (corpus->isIndependent()) throw py::AttributeError{ "doc has no `metadata` field!" };
1001 if (!doc) throw py::RuntimeError{ "doc is null!" };
1002 if (auto ret = getMetadataFromDMR()) return *ret;
1003 throw py::AttributeError{ "doc has no `metadata` field!" };
1004}
1005
1006double DocumentObject::getLL() const
1007{

Callers

nothing calls this directly

Calls 1

isIndependentMethod · 0.80

Tested by

no test coverage detected