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

indri::query::TermScoreFunction Class Reference

#include <TermScoreFunction.hpp>

Inheritance diagram for indri::query::TermScoreFunction:

indri::query::DirichletTermScoreFunction indri::query::JelinekMercerTermScoreFunction indri::query::TFIDFTermScoreFunction indri::query::TwoStageTermScoreFunction List of all members.

Public Member Functions

virtual double scoreOccurrence (double occurrences, int contextLength)=0
virtual double scoreOccurrence (double occurrences, int contextLength, double documentOccurrences, int documentLength)=0

Detailed Description

Abstract base class for all term scoring and smoothing functions. See the rule parameter format for a description of the rule parameter format.
See also:
TermScoreFunctionFactory for a description of how to add a new scoring function.


Member Function Documentation

virtual double indri::query::TermScoreFunction::scoreOccurrence double  occurrences,
int  contextLength,
double  documentOccurrences,
int  documentLength
[pure virtual]
 

Implemented in indri::query::DirichletTermScoreFunction, indri::query::JelinekMercerTermScoreFunction, indri::query::TFIDFTermScoreFunction, and indri::query::TwoStageTermScoreFunction.

virtual double indri::query::TermScoreFunction::scoreOccurrence double  occurrences,
int  contextLength
[pure virtual]
 

Implemented in indri::query::DirichletTermScoreFunction, indri::query::JelinekMercerTermScoreFunction, indri::query::TFIDFTermScoreFunction, and indri::query::TwoStageTermScoreFunction.


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