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

Method getRemovedTopWords

src/python/handler/py_LDA.cpp:510–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510std::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
522py::UniqueObj LDAModelObject::getWordForms(size_t idx) const
523{

Callers

nothing calls this directly

Calls 2

emplace_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected