| 116 | } |
| 117 | |
| 118 | py::UniqueCObj<VocabObject> LLDAModelObject::getTopicLabelDict() const |
| 119 | { |
| 120 | auto* inst = getInst<tomoto::ILLDAModel>(); |
| 121 | auto ret = py::makeNewObject<VocabObject>(); |
| 122 | ret->dep = py::UniqueObj{ getObject() }; |
| 123 | Py_INCREF(ret->dep); |
| 124 | ret->vocabs = const_cast<tomoto::Dictionary*>(&inst->getTopicLabelDict()); |
| 125 | ret->size = -1; |
| 126 | return ret; |
| 127 | } |
| 128 | |
| 129 | py::UniqueObj DocumentObject::getLabels() const |
| 130 | { |