#include <reordering_classes.h>
Public Member Functions | |
ModelScore () | |
virtual | ~ModelScore () |
void | add_example (const StringPiece &previous, const StringPiece &next, float weight) |
void | reset_fe () |
void | reset_f () |
const std::vector< double > & | get_scores_fe_prev () const |
const std::vector< double > & | get_scores_fe_next () const |
const std::vector< double > & | get_scores_f_prev () const |
const std::vector< double > & | get_scores_f_next () const |
Static Public Member Functions | |
static ModelScore * | createModelScore (const std::string &modeltype) |
Protected Member Functions | |
virtual ORIENTATION | getType (const StringPiece &s) |
Definition at line 23 of file reordering_classes.h.
ModelScore::ModelScore | ( | ) |
ModelScore::~ModelScore | ( | ) | [virtual] |
Definition at line 25 of file reordering_classes.cpp.
void ModelScore::add_example | ( | const StringPiece & | previous, | |
const StringPiece & | next, | |||
float | weight | |||
) |
Definition at line 63 of file reordering_classes.cpp.
static ModelScore* ModelScore::createModelScore | ( | const std::string & | modeltype | ) | [static] |
const vector< double > & ModelScore::get_scores_f_next | ( | ) | const |
Definition at line 86 of file reordering_classes.cpp.
const vector< double > & ModelScore::get_scores_f_prev | ( | ) | const |
Definition at line 81 of file reordering_classes.cpp.
const vector< double > & ModelScore::get_scores_fe_next | ( | ) | const |
Definition at line 76 of file reordering_classes.cpp.
Referenced by Model::createSmoothing().
const vector< double > & ModelScore::get_scores_fe_prev | ( | ) | const |
Definition at line 71 of file reordering_classes.cpp.
Referenced by Model::createSmoothing().
ORIENTATION ModelScore::getType | ( | const StringPiece & | s | ) | [protected, virtual] |
Reimplemented in ModelScoreMSLR, ModelScoreLR, ModelScoreMSD, and ModelScoreMonotonicity.
Definition at line 92 of file reordering_classes.cpp.
References StringPiece::compare(), DLEFT, DRIGHT, MONO, NOMONO, OTHER, and SWAP.
void ModelScore::reset_f | ( | ) |
void ModelScore::reset_fe | ( | ) |