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

Method makeDoc

src/TopicModel/DMRModel.hpp:413–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411 }
412
413 std::unique_ptr<DocumentBase> makeDoc(const RawDoc& rawDoc, const RawDocTokenizer::Factory& tokenizer) const override
414 {
415 auto doc = as_mutable(this)->template _makeFromRawDoc<true>(rawDoc, tokenizer);
416 return std::make_unique<_DocType>(as_mutable(this)->template _updateDoc<true>(doc,
417 rawDoc.template getMisc<std::string>("metadata"),
418 rawDoc.template getMiscDefault<std::vector<std::string>>("multi_metadata")
419 ));
420 }
421
422 size_t addDoc(const RawDoc& rawDoc) override
423 {

Callers

nothing calls this directly

Calls 1

as_mutableFunction · 0.85

Tested by

no test coverage detected