Moses::SentenceStats Class Reference

#include <SentenceStats.h>

Collaboration diagram for Moses::SentenceStats:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SentenceStats (const InputType &source)
void Initialize (const InputType &source)
void CalcFinalStats (const Hypothesis &bestHypo)
unsigned int GetTotalHypos () const
unsigned int GetNumHyposPopped () const
size_t GetNumHyposRecombined () const
unsigned int GetNumHyposPruned () const
unsigned int GetNumHyposDiscarded () const
unsigned int GetNumHyposEarlyDiscarded () const
unsigned int GetNumHyposNotBuilt () const
double GetTimeCollectOpts () const
double GetTimeBuildHyp () const
double GetTimeCalcLM () const
double GetTimeOtherScore () const
double GetTimeEstimateScore () const
double GetTimeStack () const
double GetTimeSetupCubes () const
double GetTimeManageCubes () const
double GetTimeTotal () const
size_t GetTotalSourceWords () const
size_t GetNumWordsDeleted () const
size_t GetNumWordsInserted () const
const std::vector< const
Phrase * > & 
GetDeletedWords () const
const std::vector< std::string > & GetInsertedWords () const
void AddRecombination (const Hypothesis &worseHypo, const Hypothesis &betterHypo)
void AddCreated ()
void AddPopped ()
void AddPruning ()
void AddEarlyDiscarded ()
void AddNotBuilt ()
void AddDiscarded ()
void StartTimeCollectOpts ()
void StopTimeCollectOpts ()
void StartTimeBuildHyp ()
void StopTimeBuildHyp ()
void StartTimeCalcLM ()
void StopTimeCalcLM ()
void StartTimeOtherScore ()
void StopTimeOtherScore ()
void StartTimeEstimateScore ()
void StopTimeEstimateScore ()
void StartTimeSetupCubes ()
void StopTimeSetupCubes ()
void StartTimeManageCubes ()
void StopTimeManageCubes ()
void StartTimeStack ()
void StopTimeStack ()
void StartTimeTotal ()
void StopTimeTotal ()

Protected Member Functions

void AddDeletedWords (const Hypothesis &hypo)

Protected Attributes

std::vector< RecombinationInfom_recombinationInfos
unsigned int m_numHyposCreated
unsigned int m_numHyposPopped
unsigned int m_numHyposPruned
unsigned int m_numHyposDiscarded
unsigned int m_numHyposEarlyDiscarded
unsigned int m_numHyposNotBuilt
Timer m_timeCollectOpts
Timer m_timeBuildHyp
Timer m_timeEstimateScore
Timer m_timeOtherScore
Timer m_timeCalcLM
Timer m_timeStack
Timer m_timeSetupCubes
Timer m_timeManageCubes
Timer m_timeTotal
size_t m_totalSourceWords
std::vector< const Phrase * > m_deletedWords
std::vector< std::string > m_insertedWords


Detailed Description

stats relating to decoder operation on a given sentence

Definition at line 52 of file SentenceStats.h.


Constructor & Destructor Documentation

Moses::SentenceStats::SentenceStats ( const InputType source  )  [inline]

Definition at line 59 of file SentenceStats.h.

References Initialize().

Here is the call graph for this function:


Member Function Documentation

void Moses::SentenceStats::AddCreated (  )  [inline]

Definition at line 148 of file SentenceStats.h.

References m_numHyposCreated.

Referenced by Moses::Manager::GetNextHypoId().

Here is the caller graph for this function:

void Moses::SentenceStats::AddDeletedWords ( const Hypothesis hypo  )  [protected]

void Moses::SentenceStats::AddDiscarded (  )  [inline]

void Moses::SentenceStats::AddEarlyDiscarded (  )  [inline]

Definition at line 157 of file SentenceStats.h.

References m_numHyposEarlyDiscarded.

Referenced by Moses::SearchNormal::ExpandHypothesis().

Here is the caller graph for this function:

void Moses::SentenceStats::AddNotBuilt (  )  [inline]

Definition at line 160 of file SentenceStats.h.

References m_numHyposNotBuilt.

Referenced by Moses::SearchNormal::ExpandHypothesis().

Here is the caller graph for this function:

void Moses::SentenceStats::AddPopped (  )  [inline]

Definition at line 151 of file SentenceStats.h.

References m_numHyposPopped.

Referenced by Moses::SearchCubePruning::Decode().

Here is the caller graph for this function:

void Moses::SentenceStats::AddPruning (  )  [inline]

void Moses::SentenceStats::AddRecombination ( const Hypothesis worseHypo,
const Hypothesis betterHypo 
) [inline]

Definition at line 144 of file SentenceStats.h.

References Moses::Hypothesis::GetFutureScore(), Moses::Bitmap::GetNumWordsCovered(), Moses::Hypothesis::GetWordsBitmap(), and m_recombinationInfos.

Referenced by Moses::HypothesisStackNormal::AddPrune(), and Moses::HypothesisStackCubePruning::AddPrune().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::CalcFinalStats ( const Hypothesis bestHypo  ) 

Definition at line 36 of file SentenceStats.cpp.

References AddDeletedWords().

Referenced by Moses::Manager::CalcDecoderStatistics().

Here is the call graph for this function:

Here is the caller graph for this function:

const std::vector<const Phrase*>& Moses::SentenceStats::GetDeletedWords (  )  const [inline]

Definition at line 137 of file SentenceStats.h.

References m_deletedWords.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

const std::vector<std::string>& Moses::SentenceStats::GetInsertedWords (  )  const [inline]

Definition at line 140 of file SentenceStats.h.

References m_insertedWords.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

unsigned int Moses::SentenceStats::GetNumHyposDiscarded (  )  const [inline]

Definition at line 92 of file SentenceStats.h.

References m_numHyposDiscarded.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

unsigned int Moses::SentenceStats::GetNumHyposEarlyDiscarded (  )  const [inline]

Definition at line 95 of file SentenceStats.h.

References m_numHyposEarlyDiscarded.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

unsigned int Moses::SentenceStats::GetNumHyposNotBuilt (  )  const [inline]

Definition at line 98 of file SentenceStats.h.

References m_numHyposNotBuilt.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

unsigned int Moses::SentenceStats::GetNumHyposPopped (  )  const [inline]

Definition at line 83 of file SentenceStats.h.

References m_numHyposPopped.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

unsigned int Moses::SentenceStats::GetNumHyposPruned (  )  const [inline]

Definition at line 89 of file SentenceStats.h.

References m_numHyposPruned.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

size_t Moses::SentenceStats::GetNumHyposRecombined (  )  const [inline]

Definition at line 86 of file SentenceStats.h.

References m_recombinationInfos.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

size_t Moses::SentenceStats::GetNumWordsDeleted (  )  const [inline]

Definition at line 131 of file SentenceStats.h.

References m_deletedWords.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

size_t Moses::SentenceStats::GetNumWordsInserted (  )  const [inline]

Definition at line 134 of file SentenceStats.h.

References m_insertedWords.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

double Moses::SentenceStats::GetTimeBuildHyp (  )  const [inline]

Definition at line 104 of file SentenceStats.h.

References Moses::Timer::get_elapsed_time(), and m_timeBuildHyp.

Referenced by Moses::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

double Moses::SentenceStats::GetTimeCalcLM (  )  const [inline]

Definition at line 107 of file SentenceStats.h.

References Moses::Timer::get_elapsed_time(), and m_timeCalcLM.

Referenced by Moses::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

double Moses::SentenceStats::GetTimeCollectOpts (  )  const [inline]

Definition at line 101 of file SentenceStats.h.

References Moses::Timer::get_elapsed_time(), and m_timeCollectOpts.

Referenced by Moses::Manager::Decode(), and Moses::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

double Moses::SentenceStats::GetTimeEstimateScore (  )  const [inline]

Definition at line 113 of file SentenceStats.h.

References Moses::Timer::get_elapsed_time(), and m_timeEstimateScore.

Referenced by Moses::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

double Moses::SentenceStats::GetTimeManageCubes (  )  const [inline]

Definition at line 122 of file SentenceStats.h.

References Moses::Timer::get_elapsed_time(), and m_timeManageCubes.

Referenced by Moses::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

double Moses::SentenceStats::GetTimeOtherScore (  )  const [inline]

Definition at line 110 of file SentenceStats.h.

References Moses::Timer::get_elapsed_time(), and m_timeOtherScore.

Referenced by Moses::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

double Moses::SentenceStats::GetTimeSetupCubes (  )  const [inline]

Definition at line 119 of file SentenceStats.h.

References Moses::Timer::get_elapsed_time(), and m_timeSetupCubes.

Referenced by Moses::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

double Moses::SentenceStats::GetTimeStack (  )  const [inline]

Definition at line 116 of file SentenceStats.h.

References Moses::Timer::get_elapsed_time(), and m_timeStack.

Referenced by Moses::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

double Moses::SentenceStats::GetTimeTotal (  )  const [inline]

Definition at line 125 of file SentenceStats.h.

References Moses::Timer::get_elapsed_time(), and m_timeTotal.

Referenced by Moses::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int Moses::SentenceStats::GetTotalHypos (  )  const [inline]

Definition at line 80 of file SentenceStats.h.

References m_numHyposCreated, and m_numHyposNotBuilt.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

size_t Moses::SentenceStats::GetTotalSourceWords (  )  const [inline]

Definition at line 128 of file SentenceStats.h.

References m_totalSourceWords.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

void Moses::SentenceStats::Initialize ( const InputType source  )  [inline]

Definition at line 62 of file SentenceStats.h.

References Moses::InputType::GetSize(), m_deletedWords, m_insertedWords, m_numHyposCreated, m_numHyposDiscarded, m_numHyposEarlyDiscarded, m_numHyposNotBuilt, m_numHyposPopped, m_numHyposPruned, m_recombinationInfos, and m_totalSourceWords.

Referenced by SentenceStats().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StartTimeBuildHyp (  )  [inline]

Definition at line 173 of file SentenceStats.h.

References m_timeBuildHyp, and Moses::Timer::start().

Referenced by Moses::SearchNormal::ExpandHypothesis().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StartTimeCalcLM (  )  [inline]

Definition at line 179 of file SentenceStats.h.

References m_timeCalcLM, and Moses::Timer::start().

Referenced by Moses::LanguageModelImplementation::EvaluateWhenApplied().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StartTimeCollectOpts (  )  [inline]

Definition at line 167 of file SentenceStats.h.

References m_timeCollectOpts, and Moses::Timer::start().

Referenced by Moses::Manager::Decode().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StartTimeEstimateScore (  )  [inline]

Definition at line 191 of file SentenceStats.h.

References m_timeEstimateScore, and Moses::Timer::start().

Referenced by Moses::SearchNormal::ExpandHypothesis().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StartTimeManageCubes (  )  [inline]

Definition at line 203 of file SentenceStats.h.

References m_timeManageCubes, and Moses::Timer::start().

Referenced by Moses::SearchCubePruning::Decode().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StartTimeOtherScore (  )  [inline]

Definition at line 185 of file SentenceStats.h.

References m_timeOtherScore, and Moses::Timer::start().

Referenced by Moses::SearchCubePruning::Decode(), and Moses::SearchNormal::ExpandHypothesis().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StartTimeSetupCubes (  )  [inline]

Definition at line 197 of file SentenceStats.h.

References m_timeSetupCubes, and Moses::Timer::start().

Referenced by Moses::SearchCubePruning::Decode().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StartTimeStack (  )  [inline]

Definition at line 209 of file SentenceStats.h.

References m_timeStack, and Moses::Timer::start().

Referenced by Moses::SearchCubePruning::Decode(), Moses::SearchNormal::ExpandHypothesis(), and Moses::SearchNormal::ProcessOneStack().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StartTimeTotal (  )  [inline]

Definition at line 215 of file SentenceStats.h.

References m_timeTotal, and Moses::Timer::start().

Referenced by Moses::Manager::Decode().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StopTimeBuildHyp (  )  [inline]

Definition at line 176 of file SentenceStats.h.

References m_timeBuildHyp, and Moses::Timer::stop().

Referenced by Moses::SearchNormal::ExpandHypothesis().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StopTimeCalcLM (  )  [inline]

Definition at line 182 of file SentenceStats.h.

References m_timeCalcLM, and Moses::Timer::stop().

Referenced by Moses::LanguageModelImplementation::EvaluateWhenApplied().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StopTimeCollectOpts (  )  [inline]

Definition at line 170 of file SentenceStats.h.

References m_timeCollectOpts, and Moses::Timer::stop().

Referenced by Moses::Manager::Decode().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StopTimeEstimateScore (  )  [inline]

Definition at line 194 of file SentenceStats.h.

References m_timeEstimateScore, and Moses::Timer::stop().

Referenced by Moses::SearchNormal::ExpandHypothesis().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StopTimeManageCubes (  )  [inline]

Definition at line 206 of file SentenceStats.h.

References m_timeManageCubes, and Moses::Timer::stop().

Referenced by Moses::SearchCubePruning::Decode().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StopTimeOtherScore (  )  [inline]

Definition at line 188 of file SentenceStats.h.

References m_timeOtherScore, and Moses::Timer::stop().

Referenced by Moses::SearchCubePruning::Decode(), and Moses::SearchNormal::ExpandHypothesis().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StopTimeSetupCubes (  )  [inline]

Definition at line 200 of file SentenceStats.h.

References m_timeSetupCubes, and Moses::Timer::stop().

Referenced by Moses::SearchCubePruning::Decode().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StopTimeStack (  )  [inline]

Definition at line 212 of file SentenceStats.h.

References m_timeStack, and Moses::Timer::stop().

Referenced by Moses::SearchCubePruning::Decode(), Moses::SearchNormal::ExpandHypothesis(), and Moses::SearchNormal::ProcessOneStack().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::SentenceStats::StopTimeTotal (  )  [inline]

Definition at line 218 of file SentenceStats.h.

References m_timeTotal, and Moses::Timer::stop().

Referenced by Moses::Manager::Decode().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

std::vector<const Phrase*> Moses::SentenceStats::m_deletedWords [protected]

Definition at line 252 of file SentenceStats.h.

Referenced by AddDeletedWords(), GetDeletedWords(), GetNumWordsDeleted(), and Initialize().

std::vector<std::string> Moses::SentenceStats::m_insertedWords [protected]

Definition at line 253 of file SentenceStats.h.

Referenced by GetInsertedWords(), GetNumWordsInserted(), and Initialize().

unsigned int Moses::SentenceStats::m_numHyposCreated [protected]

Definition at line 234 of file SentenceStats.h.

Referenced by AddCreated(), GetTotalHypos(), and Initialize().

Definition at line 237 of file SentenceStats.h.

Referenced by AddDiscarded(), GetNumHyposDiscarded(), and Initialize().

Definition at line 238 of file SentenceStats.h.

Referenced by AddEarlyDiscarded(), GetNumHyposEarlyDiscarded(), and Initialize().

unsigned int Moses::SentenceStats::m_numHyposNotBuilt [protected]

Definition at line 239 of file SentenceStats.h.

Referenced by AddNotBuilt(), GetNumHyposNotBuilt(), GetTotalHypos(), and Initialize().

unsigned int Moses::SentenceStats::m_numHyposPopped [protected]

Definition at line 235 of file SentenceStats.h.

Referenced by AddPopped(), GetNumHyposPopped(), and Initialize().

unsigned int Moses::SentenceStats::m_numHyposPruned [protected]

Definition at line 236 of file SentenceStats.h.

Referenced by AddPruning(), GetNumHyposPruned(), and Initialize().

Definition at line 233 of file SentenceStats.h.

Referenced by AddRecombination(), GetNumHyposRecombined(), and Initialize().

Definition at line 241 of file SentenceStats.h.

Referenced by GetTimeBuildHyp(), StartTimeBuildHyp(), and StopTimeBuildHyp().

Definition at line 244 of file SentenceStats.h.

Referenced by GetTimeCalcLM(), StartTimeCalcLM(), and StopTimeCalcLM().

Definition at line 240 of file SentenceStats.h.

Referenced by GetTimeCollectOpts(), StartTimeCollectOpts(), and StopTimeCollectOpts().

Definition at line 247 of file SentenceStats.h.

Referenced by GetTimeManageCubes(), StartTimeManageCubes(), and StopTimeManageCubes().

Definition at line 243 of file SentenceStats.h.

Referenced by GetTimeOtherScore(), StartTimeOtherScore(), and StopTimeOtherScore().

Definition at line 246 of file SentenceStats.h.

Referenced by GetTimeSetupCubes(), StartTimeSetupCubes(), and StopTimeSetupCubes().

Definition at line 245 of file SentenceStats.h.

Referenced by GetTimeStack(), StartTimeStack(), and StopTimeStack().

Definition at line 248 of file SentenceStats.h.

Referenced by GetTimeTotal(), StartTimeTotal(), and StopTimeTotal().

Definition at line 251 of file SentenceStats.h.

Referenced by GetTotalSourceWords(), and Initialize().


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

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