Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

SimpleKLRetMethod Class Reference

KL Divergence retrieval model with simple document model smoothing. More...

#include <SimpleKLRetMethod.hpp>

Inheritance diagram for SimpleKLRetMethod:

TextQueryRetMethod RetrievalMethod List of all members.

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 TextQueryRepcomputeTextQueryRep (TextQuery &qry)
 compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance).

virtual DocumentRepcomputeDocRep (int docID)
 compute the doc representation (caller responsible for deleting the memory of the generated new instance).

virtual ScoreFunctionscoreFunc ()
 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.

UnigramLMcollectLM
 a little faster if pre-computed.

DocUnigramCountercollectLMCounter
 support the construction of collectLM.

SimpleKLScoreFuncscFunc
 keep a copy to be used at any time.

SimpleKLParameter::DocSmoothParam docParam
SimpleKLParameter::QueryModelParam qryParam

Detailed Description

KL Divergence retrieval model with simple document model smoothing.


Constructor & Destructor Documentation

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

SimpleKLRetMethod::~SimpleKLRetMethod ( ) [virtual]
 


Member Function Documentation

void SimpleKLRetMethod::computeDivMinFBModel ( SimpleKLQueryModel & origRep,
DocIDSet & relDocs ) [protected]
 

Divergence minimization feedback method.

DocumentRep * SimpleKLRetMethod::computeDocRep ( int docID ) [virtual]
 

compute the doc representation (caller responsible for deleting the memory of the generated new instance).

Reimplemented from TextQueryRetMethod.

void SimpleKLRetMethod::computeMarkovChainFBModel ( SimpleKLQueryModel & origRep,
DocIDSet & relDocs ) [protected]
 

Markov chain feedback method.

void SimpleKLRetMethod::computeMixtureFBModel ( SimpleKLQueryModel & origRep,
DocIDSet & relDocs ) [protected]
 

Mixture model feedback method.

TextQueryRep * SimpleKLRetMethod::computeTextQueryRep ( TextQuery & qry ) [inline, virtual]
 

compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance).

Reimplemented from TextQueryRetMethod.

ScoreFunction * SimpleKLRetMethod::scoreFunc ( ) [inline, virtual]
 

return the scoring function pointer.

Reimplemented from TextQueryRetMethod.

void SimpleKLRetMethod::setDocSmoothParam ( SimpleKLParameter::DocSmoothParam & docSmthParam ) [inline]
 

void SimpleKLRetMethod::setQueryModelParam ( SimpleKLParameter::QueryModelParam & queryModParam ) [inline]
 

void SimpleKLRetMethod::updateTextQuery ( TextQueryRep & origRep,
DocIDSet & relDocs ) [virtual]
 

Modify/update the query representation based on a set (presumably) relevant documents.

Reimplemented from TextQueryRetMethod.


Member Data Documentation

UnigramLM * SimpleKLRetMethod::collectLM [protected]
 

a little faster if pre-computed.

DocUnigramCounter * SimpleKLRetMethod::collectLMCounter [protected]
 

support the construction of collectLM.

SimpleKLParameter::DocSmoothParam SimpleKLRetMethod::docParam [protected]
 

double * SimpleKLRetMethod::docProbMass [protected]
 

needed for fast alpha computing.

double * SimpleKLRetMethod::mcNorm [protected]
 

needed for fast one-step Markov chain.

SimpleKLParameter::QueryModelParam SimpleKLRetMethod::qryParam [protected]
 

SimpleKLScoreFunc * SimpleKLRetMethod::scFunc [protected]
 

keep a copy to be used at any time.

int * SimpleKLRetMethod::uniqueTermCount [protected]
 

needed for supporting fast absolute discounting.


The documentation for this class was generated from the following files:
Generated at Fri Jul 26 18:22:58 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000