#include <SimpleKLRetMethod.hpp>
Inheritance diagram for SimpleKLRetMethod:
Public Methods | |
SimpleKLRetMethod (const Index &dbIndex, const string &supportFileName, ScoreAccumulator &accumulator) | |
Construction of SimpleKLRetMethod requires a smoothing support file, which can be generated by the application GenerateSmoothSupport. The use of this smoothing support file is to store some pre-computed quantities so that the scoring procedure can be speeded up. | |
virtual | ~SimpleKLRetMethod () |
virtual TextQueryRep * | computeTextQueryRep (const TermQuery &qry) |
compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance) | |
virtual DocumentRep * | computeDocRep (DOCID_T docID) |
compute the doc representation (caller responsible for deleting the memory of the generated new instance) | |
virtual ScoreFunction * | scoreFunc () |
return the scoring function pointer | |
virtual void | updateTextQuery (TextQueryRep &origRep, const DocIDSet &relDocs) |
Modify/update the query representation based on a set (presumably) relevant documents. | |
void | setDocSmoothParam (SimpleKLParameter::DocSmoothParam &docSmthParam) |
void | setQueryModelParam (SimpleKLParameter::QueryModelParam &queryModParam) |
Protected Methods | |
void | loadSupportFile () |
Load support file support. | |
query model updating methods (i.e., feedback methods) | |
void | computeMixtureFBModel (SimpleKLQueryModel &origRep, const DocIDSet &relDocs) |
Mixture model feedback method. | |
void | computeDivMinFBModel (SimpleKLQueryModel &origRep, const DocIDSet &relDocs) |
Divergence minimization feedback method. | |
void | computeMarkovChainFBModel (SimpleKLQueryModel &origRep, const DocIDSet &relDocs) |
Markov chain feedback method. | |
void | computeRM1FBModel (SimpleKLQueryModel &origRep, const DocIDSet &relDocs) |
Relevance model1 feedback method. | |
void | computeRM2FBModel (SimpleKLQueryModel &origRep, const DocIDSet &relDocs) |
Relevance model1 feedback method. | |
Protected Attributes | |
double * | mcNorm |
needed for fast one-step Markov chain | |
double * | docProbMass |
needed for fast alpha computing | |
COUNT_T * | uniqueTermCount |
needed for supporting fast absolute discounting | |
UnigramLM * | collectLM |
a little faster if pre-computed | |
DocUnigramCounter * | collectLMCounter |
support the construction of collectLM | |
SimpleKLScoreFunc * | scFunc |
keep a copy to be used at any time | |
SimpleKLParameter::DocSmoothParam | docParam |
SimpleKLParameter::QueryModelParam | qryParam |
const string | supportFile |
|
Construction of SimpleKLRetMethod requires a smoothing support file, which can be generated by the application GenerateSmoothSupport. The use of this smoothing support file is to store some pre-computed quantities so that the scoring procedure can be speeded up.
|
|
|
|
Divergence minimization feedback method.
|
|
compute the doc representation (caller responsible for deleting the memory of the generated new instance)
Implements TextQueryRetMethod. |
|
Markov chain feedback method.
|
|
Mixture model feedback method.
|
|
Relevance model1 feedback method.
|
|
Relevance model1 feedback method.
|
|
compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance)
Implements TextQueryRetMethod. |
|
Load support file support.
|
|
return the scoring function pointer
Implements TextQueryRetMethod. |
|
|
|
|
|
Modify/update the query representation based on a set (presumably) relevant documents.
Implements TextQueryRetMethod. |
|
a little faster if pre-computed
|
|
support the construction of collectLM
|
|
|
|
needed for fast alpha computing
|
|
needed for fast one-step Markov chain
|
|
|
|
keep a copy to be used at any time
|
|
|
|
needed for supporting fast absolute discounting
|