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

Method getVocabs

src/python/handler/py_LDA.cpp:453–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453py::UniqueCObj<VocabObject> LDAModelObject::getVocabs() const
454{
455 auto* inst = getInst<tomoto::ILDAModel>();
456 auto ret = py::makeNewObject<VocabObject>();
457 ret->dep = py::UniqueObj{ getObject() };
458 Py_INCREF(ret->dep);
459 ret->vocabs = (tomoto::Dictionary*)&inst->getVocabDict();
460 ret->size = inst->getVocabDict().size();
461 return ret;
462}
463
464py::UniqueCObj<VocabObject> LDAModelObject::getUsedVocabs() const
465{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected