| 996 | } |
| 997 | |
| 998 | std::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 | |
| 1006 | double DocumentObject::getLL() const |
| 1007 | { |
nothing calls this directly
no test coverage detected