Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
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>
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) |
The default comparator for comparing two Candidate instances based on their respective scores (i.e., the values returned by invoking their Candidate::score methods).
|
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.