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

Public Methods | |
| void | setScoreMethod (enum SimpleKLParameter::adjustedScoreMethods adj) |
| 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) | |
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.16