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

TermScoreFunction Class Reference

#include <TermScoreFunction.hpp>

Inheritance diagram for TermScoreFunction:

DirichletTermScoreFunction JelinekMercerTermScoreFunction OkapiTermScoreFunction TFIDFTermScoreFunction TwoStageTermScoreFunction List of all members.

Public Methods

virtual double scoreOccurrence (int occurrences, int contextLength)=0
virtual double scoreOccurrence (int occurrences, int contextLength, int 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 TermScoreFunction::scoreOccurrence int    occurrences,
int    contextLength,
int    documentOccurrences,
int    documentLength
[pure virtual]
 

Implemented in DirichletTermScoreFunction, JelinekMercerTermScoreFunction, and TwoStageTermScoreFunction.

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

Implemented in DirichletTermScoreFunction, JelinekMercerTermScoreFunction, OkapiTermScoreFunction, TFIDFTermScoreFunction, and TwoStageTermScoreFunction.


The documentation for this class was generated from the following file:
Generated on Wed Nov 3 12:59:57 2004 for Lemur Toolkit by doxygen1.2.18