#include <SimpleKLRetMethod.hpp>
Inheritance diagram for lemur::retrieval::SimpleKLRetMethod:
Public Member Functions | |
SimpleKLRetMethod (const lemur::api::Index &dbIndex, const string &supportFileName, lemur::api::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 lemur::api::TextQueryRep * | computeTextQueryRep (const lemur::api::TermQuery &qry) |
virtual lemur::api::DocumentRep * | computeDocRep (lemur::api::DOCID_T docID) |
compute the doc representation (caller responsible for deleting the memory of the generated new instance) | |
virtual lemur::api::ScoreFunction * | scoreFunc () |
return the scoring function pointer | |
virtual void | updateTextQuery (lemur::api::TextQueryRep &origRep, const lemur::api::DocIDSet &relDocs) |
void | setDocSmoothParam (SimpleKLParameter::DocSmoothParam &docSmthParam) |
void | setQueryModelParam (SimpleKLParameter::QueryModelParam &queryModParam) |
Protected Member Functions | |
void | loadSupportFile () |
Load support file support. | |
query model updating methods (i.e., feedback methods) | |
void | computeMixtureFBModel (SimpleKLQueryModel &origRep, const lemur::api::DocIDSet &relDocs) |
Mixture model feedback method. | |
void | computeDivMinFBModel (SimpleKLQueryModel &origRep, const lemur::api::DocIDSet &relDocs) |
Divergence minimization feedback method. | |
void | computeMarkovChainFBModel (SimpleKLQueryModel &origRep, const lemur::api::DocIDSet &relDocs) |
Markov chain feedback method. | |
void | computeRM1FBModel (SimpleKLQueryModel &origRep, const lemur::api::DocIDSet &relDocs) |
Relevance model1 feedback method. | |
void | computeRM2FBModel (SimpleKLQueryModel &origRep, const lemur::api::DocIDSet &relDocs) |
Relevance model1 feedback method. | |
Protected Attributes | |
double * | mcNorm |
needed for fast one-step Markov chain | |
double * | docProbMass |
needed for fast alpha computing | |
lemur::api::COUNT_T * | uniqueTermCount |
needed for supporting fast absolute discounting | |
lemur::langmod::UnigramLM * | collectLM |
a little faster if pre-computed | |
lemur::langmod::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 lemur::api::TextQueryRetMethod. |
|
Markov chain feedback method.
|
|
Mixture model feedback method.
|
|
Relevance model1 feedback method.
|
|
Relevance model1 feedback method.
|
|
|
|
Load support file support.
|
|
return the scoring function pointer
Implements lemur::api::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
|