vocabtree  0.0.1
inverted_index.cxx File Reference
#include "inverted_index.hpp"
#include <config.hpp>
#include <utils/filesystem.hpp>
#include <utils/numerics.hpp>
#include <iostream>
#include <fstream>
Include dependency graph for inverted_index.cxx:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const InvertedIndex::MatchResults &match_results)
 Prints out information about the match results. More...
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const InvertedIndex::MatchResults match_results 
)

Prints out information about the match results.

Definition at line 162 of file inverted_index.cxx.

References MatchResultsBase::matches, and InvertedIndex::MatchResults::tfidf_scores.

162  {
163  out << "[ ";
164  for(uint32_t i=0; i<MIN(8, match_results.matches.size()); i++) {
165  out << "[ " << match_results.matches[i] << ", " << match_results.tfidf_scores[i] << " ] ";
166  }
167  out << "]";
168  return out;
169 }