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

lemur::api::ScoreFunction Class Reference

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

#include <ScoreFunction.hpp>

Inheritance diagram for lemur::api::ScoreFunction:

lemur::api::StructQueryScoreFunc lemur::retrieval::CORIScoreFunc lemur::retrieval::CosSimScoreFunc lemur::retrieval::OkapiScoreFunc lemur::retrieval::SimpleKLScoreFunc List of all members.

Public Member Functions

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)


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 lemur::api::ScoreFunction::adjustedScore double  origScore,
const TextQueryRep qRep,
const DocumentRep dRep
const [inline, virtual]
 

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

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

compute the score contribution of a matched term


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4