ModErn Text Analysis
META Enumerates Textual Applications
Public Member Functions | Public Attributes | List of all members
meta::index::ranker_context Struct Reference

Stores a list of postings_stream and other relevant information for performing document-at-a-time ranking. More...

#include <ranker.h>

Public Member Functions

template<class ForwardIterator , class FilterFunction >
 ranker_context (inverted_index &inv, ForwardIterator begin, ForwardIterator end, FilterFunction &&filter)
 

Public Attributes

inverted_indexidx
 
std::vector< detail::postings_contextpostings
 
float query_length
 
doc_id cur_doc
 

Detailed Description

Stores a list of postings_stream and other relevant information for performing document-at-a-time ranking.

You should not generally have to interact with this class unless implementing a new feedback method, in which case you should only have to construct it and pass it off to ranker::rank() directly afterward.

ForwardIterator must dereference to a pair type (either std::pair or hashing::kv_pair) which has a key type of either std::string or term_id and a value type convertible to float.


The documentation for this struct was generated from the following file: