| 462 | } |
| 463 | |
| 464 | py::UniqueCObj<VocabObject> LDAModelObject::getUsedVocabs() const |
| 465 | { |
| 466 | auto* inst = getInst<tomoto::ILDAModel>(); |
| 467 | auto ret = py::makeNewObject<VocabObject>(); |
| 468 | ret->dep = py::UniqueObj{ getObject() }; |
| 469 | Py_INCREF(ret->dep); |
| 470 | ret->vocabs = (tomoto::Dictionary*)&inst->getVocabDict(); |
| 471 | ret->size = inst->getV(); |
| 472 | return ret; |
| 473 | } |
| 474 | |
| 475 | py::UniqueObj LDAModelObject::getUsedVocabCf() const |
| 476 | { |