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

Method getTopicDistFromPseudoDoc

src/python/handler/py_PT.cpp:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58std::vector<float> DocumentObject::getTopicDistFromPseudoDoc(bool normalize) const
59{
60 auto* mdl = corpus->tm->getInstDynamic<tomoto::IPTModel>();
61 if (!mdl) throw py::ValueError{ "`from_pseudo_doc` is valid for only `tomotopy.PTModel`." };
62 return mdl->getTopicsByDoc(getBoundDoc(), normalize);
63}

Callers

nothing calls this directly

Calls 1

getTopicsByDocMethod · 0.80

Tested by

no test coverage detected