#include <StructQueryRetMethod.hpp>
Inheritance diagram for lemur::api::StructQueryRetMethod:
Public Member Functions | |
StructQueryRetMethod (const Index &ind) | |
virtual | ~StructQueryRetMethod () |
virtual lemur::retrieval::StructQueryRep * | computeStructQueryRep (const TermQuery &qry)=0 |
compute the query representation for a text query | |
virtual QueryRep * | computeQueryRep (const Query &qry) |
overriding abstract class method | |
virtual double | scoreDoc (const QueryRep &qry, DOCID_T docID) |
score the query against the given document id. | |
virtual void | scoreCollection (const QueryRep &qry, IndexedRealVector &results) |
score the query against the collection. | |
virtual DocumentRep * | computeDocRep (DOCID_T docID)=0 |
virtual ScoreFunction * | scoreFunc ()=0 |
return the scoring function pointer | |
virtual void | updateQuery (QueryRep &qryRep, const DocIDSet &relDocs) |
update the query | |
virtual void | updateStructQuery (lemur::retrieval::StructQueryRep &qryRep, const DocIDSet &relDocs)=0 |
virtual void | scoreInvertedIndex (const QueryRep &qryRep, IndexedRealVector &scores, bool scoreAll=false) |
Scoring with the inverted index. |
Given a query q = op(q1,q2,...,qN)
where qi can be an structured query node or a term node, and a document d
, StructQueryRetMethod
assumes the following general scoring function:
s(q,d) = g(s(q1,d), ..., s(qN,d))That is, the score of a document
d
against a queryq
is a functiong
of the scores of each child query node inqi
, whereg
is the composition function forq
, such as average.
Constructor & Destructor Documentation
|
|
|
|
|
compute the doc representation (caller responsible for deleting the memory of the generated new instance) Implemented in lemur::retrieval::InQueryRetMethod. |
|
overriding abstract class method
Implements lemur::api::RetrievalMethod. |
|
compute the query representation for a text query
|
|
score the query against the collection.
Reimplemented from lemur::api::RetrievalMethod. |
|
score the query against the given document id.
Implements lemur::api::RetrievalMethod. |
|
return the scoring function pointer
Implemented in lemur::retrieval::InQueryRetMethod. |
|
Scoring with the inverted index.
|
|
update the query
Implements lemur::api::RetrievalMethod. |
|
Modify/update the query representation based on a set (presumably) relevant documents |