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

ScoreFunction Class Reference

Abstract interface for retrieval function with a default implementation (dot product). More...

#include <ScoreFunction.hpp>

Inheritance diagram for ScoreFunction:

CORIScoreFunc CosSimScoreFunc OkapiScoreFunc SimpleKLScoreFunc StructQueryScoreFunc 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

Abstract interface for retrieval function with a default implementation (dot product).

This is an abstract interface for a retrieval function that can be written as involving a sum over all the matched terms between a query and a document. Many retrieval functions can be rewritten in this form. Please see the API documentation on the Lemur web site for more information about the generic scoring function form.


Member Function Documentation

virtual double ScoreFunction::adjustedScore double    origScore,
TextQueryRep   qRep,
DocumentRep   dRep
[inline, virtual]
 

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

Reimplemented in CORIScoreFunc, CosSimScoreFunc, and SimpleKLScoreFunc.

virtual double ScoreFunction::matchedTermWeight QueryTerm   qTerm,
TextQueryRep   qRep,
DocInfo   info,
DocumentRep   dRep
[inline, virtual]
 

compute the score contribution of a matched term

Reimplemented in OkapiScoreFunc, and SimpleKLScoreFunc.


The documentation for this class was generated from the following file:
Generated on Mon Sep 30 14:14:19 2002 for LEMUR by doxygen1.2.18