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::DefaultGoldComparator Class Reference

The default comparator for comparing two Candidate instances for being the “gold” candidate. More...

#include <model.H>

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

Public Member Functions

virtual int Compare (const Model &model, const Candidate &c1, const Candidate &c2)
 This method first compares c1 to c2 based on their respective losses (i.e., the values returned by invoking their Candidate::loss methods): c1 is considered to be greater than c2 if it has a lower loss. 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 for being the “gold” candidate.

Definition at line 75 of file model.H.

Member Function Documentation

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

This method first compares c1 to c2 based on their respective losses (i.e., the values returned by invoking their Candidate::loss methods): c1 is considered to be greater than c2 if it has a lower loss.

If the two losses are equal, then the two specified Candidate instances are compared based on score, as described by the documentation for the DefaultScoreComparator::Compare method.

Implements reranker::Candidate::Comparator.

Definition at line 85 of file model.H.


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