Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
reranker::DefaultScoreComparator Class Reference

The default comparator for comparing two Candidate instances based on their respective scores (i.e., the values returned by invoking their Candidate::score methods). More...

#include <model.H>

Inheritance diagram for reranker::DefaultScoreComparator:
reranker::Candidate::Comparator reranker::FactoryConstructible

Public Member Functions

virtual int Compare (const Model &model, const Candidate &c1, const Candidate &c2)
 Returns 0 if the two candidates’ scores are equal, less than zero if the score of c1 is less than that of c2 and more than 0 if the score of c1 is greater than that of c2. More...
 
- Public Member Functions inherited from reranker::FactoryConstructible
virtual ~FactoryConstructible ()
 
virtual void RegisterInitializers (Initializers &initializers)
 
virtual void Init (const Environment *env, const string &arg)
 

Detailed Description

The default comparator for comparing two Candidate instances based on their respective scores (i.e., the values returned by invoking their Candidate::score methods).

Definition at line 60 of file model.H.

Member Function Documentation

virtual int reranker::DefaultScoreComparator::Compare ( const Model model,
const Candidate c1,
const Candidate c2 
)
inlinevirtual

Returns 0 if the two candidates’ scores are equal, less than zero if the score of c1 is less than that of c2 and more than 0 if the score of c1 is greater than that of c2.

Implements reranker::Candidate::Comparator.

Definition at line 66 of file model.H.


The documentation for this class was generated from the following file: