ModelScore Class Reference

#include <reordering_classes.h>

Inheritance diagram for ModelScore:

Inheritance graph
[legend]

List of all members.

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 ModelScorecreateModelScore (const std::string &modeltype)

Protected Member Functions

virtual ORIENTATION getType (const StringPiece &s)


Detailed Description

Definition at line 23 of file reordering_classes.h.


Constructor & Destructor Documentation

ModelScore::ModelScore (  ) 

Definition at line 15 of file reordering_classes.cpp.

References MONO, and NOMONO.

ModelScore::~ModelScore (  )  [virtual]

Definition at line 25 of file reordering_classes.cpp.


Member Function Documentation

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]

Referenced by main().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

const vector< double > & ModelScore::get_scores_fe_prev (  )  const

Definition at line 71 of file reordering_classes.cpp.

Referenced by Model::createSmoothing().

Here is the caller graph for this function:

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.

Here is the call graph for this function:

void ModelScore::reset_f (  ) 

Definition at line 54 of file reordering_classes.cpp.

References MONO, and NOMONO.

void ModelScore::reset_fe (  ) 

Definition at line 46 of file reordering_classes.cpp.

References MONO, and NOMONO.


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

Generated on Thu Jul 6 00:31:53 2017 for Moses by  doxygen 1.5.9