|
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.
|
|
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 |