#include <StructQueryRetMethod.hpp>
Inheritance diagram for StructQueryRetMethod:

Public Methods | |
| StructQueryRetMethod (InvFPIndex &ind, ScoreAccumulator &accumulator) | |
| virtual | ~StructQueryRetMethod () |
| virtual StructQueryRep * | computeStructQueryRep (StructQuery &qry)=0 |
| compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance) | |
| virtual QueryRep * | computeQueryRep (Query &qry) |
| overriding abstract class method | |
| virtual double | scoreDocVector (StructQueryRep &qRep, int docID, FreqVector &docVector) |
| score the query against the given document vector. | |
| virtual double | scoreDoc (QueryRep &qry, int docID) |
| score the query against the given document id. | |
| virtual void | scoreCollection (QueryRep &qry, IndexedRealVector &results) |
| score the query against the collection. | |
| virtual DocumentRep * | computeDocRep (int docID)=0 |
| compute the doc representation (caller responsible for deleting the memory of the generated new instance) | |
| virtual ScoreFunction * | scoreFunc ()=0 |
| return the scoring function pointer | |
| virtual void | updateQuery (QueryRep &qryRep, DocIDSet &relDocs) |
| update the query | |
| virtual void | updateStructQuery (StructQueryRep &qryRep, DocIDSet &relDocs)=0 |
| Modify/update the query representation based on a set (presumably) relevant documents. | |
| virtual void | scoreInvertedIndex (QueryRep &qryRep, IndexedRealVector &scores, bool scoreAll=false) |
| Efficient scoring with the inverted index. | |
Protected Attributes | |
| ScoreAccumulator & | scAcc |
| InvFPIndex & | index |
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 query q is a function g of the scores of each child query node in qi, where g is the composition function for q, such as average.
|
||||||||||||
|
|
|
|
|
|
|
compute the doc representation (caller responsible for deleting the memory of the generated new instance)
Implemented in InQueryRetMethod. |
|
|
overriding abstract class method
Implements RetrievalMethod. |
|
|
compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance)
Implemented in InQueryRetMethod. |
|
||||||||||||
|
score the query against the collection.
Reimplemented from RetrievalMethod. |
|
||||||||||||
|
score the query against the given document id.
Implements RetrievalMethod. |
|
||||||||||||||||
|
score the query against the given document vector.
|
|
|
return the scoring function pointer
Implemented in InQueryRetMethod. |
|
||||||||||||||||
|
Efficient scoring with the inverted index.
|
|
||||||||||||
|
update the query
Implements RetrievalMethod. |
|
||||||||||||
|
Modify/update the query representation based on a set (presumably) relevant documents.
Implemented in InQueryRetMethod. |
|
|
|
|
|
|
1.2.18