Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
An inner interface specifying comparison between two Candidate instances. More...
#include <candidate.H>
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) |
An inner interface specifying comparison between two Candidate instances.
Definition at line 108 of file candidate.H.
|
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.