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::Candidate::Comparator Class Referenceabstract

An inner interface specifying comparison between two Candidate instances. More...

#include <candidate.H>

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

Public Member Functions

virtual int Compare (const Model &model, const Candidate &c1, const Candidate &c2)=0
 Compares the two specified Candidate instances. 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

An inner interface specifying comparison between two Candidate instances.

Definition at line 108 of file candidate.H.

Member Function Documentation

virtual int reranker::Candidate::Comparator::Compare ( const Model model,
const Candidate c1,
const Candidate c2 
)
pure virtual

Compares the two specified Candidate instances.

A return value of 0 indicates that the two instances are equal, a value of less than 0 indicates that c1 < c2, and a value of more than zero indicates that c1 > c2.

Implemented in reranker::DefaultGoldComparator, reranker::DefaultScoreComparator, and reranker::DirectLossScoreComparator.


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