#include <SimpleKLRetMethod.hpp>
Inheritance diagram for SimpleKLScoreFunc:

Public Methods | |
| void | setScoreMethod (enum SimpleKLParameter::adjustedScoreMethods adj) |
| virtual double | matchedTermWeight (const QueryTerm *qTerm, const TextQueryRep *qRep, const DocInfo *info, const DocumentRep *dRep) const |
| compute the score contribution of a matched term | |
| virtual double | adjustedScore (double origScore, const TextQueryRep *qRep, const DocumentRep *dRep) const |
| score adjustment (e.g., appropriate length normalization) | |
Public Attributes | |
| enum SimpleKLParameter::adjustedScoreMethods | adjScoreMethod |
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:
|
||||||||||||||||
|
score adjustment (e.g., appropriate length normalization)
Reimplemented from ScoreFunction. |
|
||||||||||||||||||||
|
compute the score contribution of a matched term
Reimplemented from ScoreFunction. |
|
|
|
|
|
|
1.2.18