Esempio n. 1
0
 void load(std::ifstream& ifs)
 {
     sdsl::read_member(num_docs,ifs);
     sdsl::read_member(num_terms,ifs);
     sdsl::read_member(avg_doc_len,ifs);
     LOG(INFO) << "num docs : " << num_docs;
     LOG(INFO) << "num terms : " << num_terms;
     LOG(INFO) << "avg doc len : " << avg_doc_len;
     doc_lengths.load(ifs);
 }
Esempio n. 2
0
 void load(std::istream& in)
 {
     m_sa.load(in);
     m_text.load(in);
 }