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

Method copy

src/python/handler/py_LDA.cpp:546–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546py::UniquePObj<LDAModelObject> LDAModelObject::copy(PyObject* cls) const
547{
548 auto* inst = getInst<tomoto::ILDAModel>();
549 auto ret = py::makeNewObject<py::PObject<LDAModelObject>>((PyTypeObject*)cls);
550 ret->inst = inst->copy();
551 ret->isPrepared = isPrepared;
552 ret->minWordCnt = minWordCnt;
553 ret->minWordDf = minWordDf;
554 ret->removeTopWord = removeTopWord;
555 return ret;
556}
557
558std::pair<py::UniquePObj<LDAModelObject>, std::vector<uint8_t>> LDAModelObject::load(PyObject* cls, const std::string& filename)
559{

Callers 9

makeDocMethod · 0.45
makeDocMethod · 0.45
iternextMethod · 0.45
makeDocMethod · 0.45
makeDocMethod · 0.45
makeDocMethod · 0.45
makeDocMethod · 0.45
makeDocMethod · 0.45
makeDocMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected