| 508 | } |
| 509 | |
| 510 | std::vector<std::string> LDAModelObject::getRemovedTopWords() const |
| 511 | { |
| 512 | auto* inst = getInst<tomoto::ILDAModel>(); |
| 513 | vector<string> ret; |
| 514 | size_t last = inst->getVocabDict().size(); |
| 515 | for (size_t rmV = last - removeTopWord; rmV < last; ++rmV) |
| 516 | { |
| 517 | ret.emplace_back(inst->getVocabDict().toWord(rmV)); |
| 518 | } |
| 519 | return ret; |
| 520 | } |
| 521 | |
| 522 | py::UniqueObj LDAModelObject::getWordForms(size_t idx) const |
| 523 | { |
nothing calls this directly
no test coverage detected