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

SimpleKLScoreFunc Class Reference

Simple KL-divergence scoring function. More...

#include <SimpleKLRetMethod.hpp>

Inheritance diagram for SimpleKLScoreFunc:

ScoreFunction List of all members.

Public Methods

virtual double matchedTermWeight (QueryTerm *qTerm,TextQueryRep *qRep,DocInfo *info,DocumentRep *dRep)
 compute the score contribution of a matched term.

virtual double adjustedScore (double origScore,TextQueryRep *qRep,DocumentRep *dRep)
 score adjustment (e.g., appropriate length normalization).


Detailed Description

Simple KL-divergence scoring function.

The KL-divergence formula D(model_q || model_d), when used for ranking documents, can be computed efficiently by re-writing the formula as a sum over all matched terms in a query and a document. The details of such rewriting are described in the following two papers:


Member Function Documentation

double SimpleKLScoreFunc::adjustedScore ( double origScore,
TextQueryRep * qRep,
DocumentRep * dRep ) [inline, virtual]
 

score adjustment (e.g., appropriate length normalization).

Reimplemented from ScoreFunction.

double SimpleKLScoreFunc::matchedTermWeight ( QueryTerm * qTerm,
TextQueryRep * qRep,
DocInfo * info,
DocumentRep * dRep ) [inline, virtual]
 

compute the score contribution of a matched term.

Reimplemented from ScoreFunction.


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