MosesTuning::ScoreData Class Reference

#include <ScoreData.h>

Collaboration diagram for MosesTuning::ScoreData:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ScoreData (Scorer *scorer)
 ~ScoreData ()
void clear ()
ScoreArrayget (std::size_t idx)
const ScoreArrayget (std::size_t idx) const
bool exists (int sent_idx) const
bool existsInternal (int sent_idx) const
ScoreStatsget (std::size_t i, std::size_t j)
const ScoreStatsget (std::size_t i, std::size_t j) const
std::string name () const
std::string name (const std::string &score_type)
void add (ScoreArray &e)
void add (const ScoreStats &e, int sent_idx)
std::size_t NumberOfScores () const
std::size_t size () const
void save (const std::string &file, bool bin=false)
void save (std::ostream *os, bool bin=false)
void save (bool bin=false)
void load (std::istream *is)
void load (const std::string &file)
bool check_consistency () const
void setIndex ()
int getIndex (const int idx) const
int getName (std::size_t idx) const


Detailed Description

Definition at line 26 of file ScoreData.h.


Constructor & Destructor Documentation

MosesTuning::ScoreData::ScoreData ( Scorer scorer  ) 

Definition at line 23 of file ScoreData.cpp.

References MosesTuning::Scorer::getName(), MosesTuning::Scorer::NumberOfScores(), and MosesTuning::Scorer::setScoreData().

Here is the call graph for this function:

MosesTuning::ScoreData::~ScoreData (  )  [inline]

Definition at line 42 of file ScoreData.h.


Member Function Documentation

void MosesTuning::ScoreData::add ( const ScoreStats e,
int  sent_idx 
)

Definition at line 99 of file ScoreData.cpp.

References MosesTuning::ScoreArray::add(), exists(), getIndex(), MosesTuning::ScoreArray::NumberOfScores(), and MosesTuning::ScoreArray::setIndex().

Here is the call graph for this function:

void MosesTuning::ScoreData::add ( ScoreArray e  ) 

Definition at line 87 of file ScoreData.cpp.

References exists(), getIndex(), MosesTuning::ScoreArray::getIndex(), and setIndex().

Referenced by MosesTuning::InterpolatedScorer::setScoreData().

Here is the call graph for this function:

Here is the caller graph for this function:

bool MosesTuning::ScoreData::check_consistency (  )  const

Definition at line 121 of file ScoreData.cpp.

void MosesTuning::ScoreData::clear (  )  [inline]

Definition at line 44 of file ScoreData.h.

bool MosesTuning::ScoreData::exists ( int  sent_idx  )  const [inline]

Definition at line 56 of file ScoreData.h.

References existsInternal(), and getIndex().

Referenced by add().

Here is the call graph for this function:

Here is the caller graph for this function:

bool MosesTuning::ScoreData::existsInternal ( int  sent_idx  )  const [inline]

Definition at line 60 of file ScoreData.h.

Referenced by exists().

Here is the caller graph for this function:

const ScoreStats& MosesTuning::ScoreData::get ( std::size_t  i,
std::size_t  j 
) const [inline]

Definition at line 68 of file ScoreData.h.

ScoreStats& MosesTuning::ScoreData::get ( std::size_t  i,
std::size_t  j 
) [inline]

Definition at line 64 of file ScoreData.h.

const ScoreArray& MosesTuning::ScoreData::get ( std::size_t  idx  )  const [inline]

Definition at line 52 of file ScoreData.h.

ScoreArray& MosesTuning::ScoreData::get ( std::size_t  idx  )  [inline]

Definition at line 48 of file ScoreData.h.

Referenced by MosesTuning::StatisticsBasedScorer::score(), MosesTuning::SentenceLevelScorer::score(), and MosesTuning::InterpolatedScorer::setScoreData().

Here is the caller graph for this function:

int MosesTuning::ScoreData::getIndex ( const int  idx  )  const [inline]

Definition at line 101 of file ScoreData.h.

Referenced by add(), and exists().

Here is the caller graph for this function:

int MosesTuning::ScoreData::getName ( std::size_t  idx  )  const [inline]

Definition at line 109 of file ScoreData.h.

void MosesTuning::ScoreData::load ( const std::string &  file  ) 

void MosesTuning::ScoreData::load ( std::istream *  is  ) 

std::string MosesTuning::ScoreData::name ( const std::string &  score_type  )  [inline]

Definition at line 76 of file ScoreData.h.

std::string MosesTuning::ScoreData::name (  )  const [inline]

Definition at line 72 of file ScoreData.h.

std::size_t MosesTuning::ScoreData::NumberOfScores (  )  const [inline]

Definition at line 83 of file ScoreData.h.

Referenced by MosesTuning::InterpolatedScorer::setScoreData().

Here is the caller graph for this function:

void MosesTuning::ScoreData::save ( bool  bin = false  ) 

Definition at line 53 of file ScoreData.cpp.

References save().

Here is the call graph for this function:

void MosesTuning::ScoreData::save ( std::ostream *  os,
bool  bin = false 
)

void MosesTuning::ScoreData::save ( const std::string &  file,
bool  bin = false 
)

Referenced by save().

Here is the caller graph for this function:

void MosesTuning::ScoreData::setIndex (  ) 

Definition at line 132 of file ScoreData.cpp.

Referenced by add().

Here is the caller graph for this function:

std::size_t MosesTuning::ScoreData::size (  )  const [inline]


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

Generated on Thu Jul 6 00:34:19 2017 for Moses by  doxygen 1.5.9