#include <SimpleKLRetMethod.hpp>
Inheritance diagram for SimpleKLRetMethod:
Public Methods | |
SimpleKLRetMethod (Index &dbIndex,const char *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 (TextQuery &qry) |
compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance). | |
virtual DocumentRep* | computeDocRep (int 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,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 | |
query model updating methods (i.e., feedback methods) | |
void | computeMixtureFBModel (SimpleKLQueryModel &origRep,DocIDSet &relDocs) |
Mixture model feedback method. | |
void | computeDivMinFBModel (SimpleKLQueryModel &origRep,DocIDSet &relDocs) |
Divergence minimization feedback method. | |
void | computeMarkovChainFBModel (SimpleKLQueryModel &origRep,DocIDSet &relDocs) |
Markov chain feedback method. | |
Protected Attributes | |
double* | mcNorm |
needed for fast one-step Markov chain. | |
double* | docProbMass |
needed for fast alpha computing. | |
int* | 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 |
|
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).
Reimplemented from TextQueryRetMethod. |
|
Markov chain feedback method.
|
|
Mixture model feedback method.
|
|
compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance).
Reimplemented from TextQueryRetMethod. |
|
return the scoring function pointer.
Reimplemented from TextQueryRetMethod. |
|
|
|
|
|
Modify/update the query representation based on a set (presumably) relevant documents.
Reimplemented from 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.
|