Moses::SentenceStats Class Reference

#include <SentenceStats.h>

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
size_t GetNumHyposRecombined () const
unsigned int GetNumHyposPruned () const
unsigned int GetNumHyposDiscarded () const
unsigned int GetNumHyposEarlyDiscarded () const
unsigned int GetNumHyposNotBuilt () const
float GetTimeCollectOpts () const
float GetTimeBuildHyp () const
float GetTimeCalcLM () const
float GetTimeEstimateScore () const
float GetTimeOtherScore () const
float GetTimeStack () const
float 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 AddPruning ()
void AddEarlyDiscarded ()
void AddNotBuilt ()
void AddDiscarded ()
void AddTimeCollectOpts (clock_t t)
void AddTimeBuildHyp (clock_t t)
void AddTimeCalcLM (clock_t t)
void AddTimeEstimateScore (clock_t t)
void AddTimeOtherScore (clock_t t)
void AddTimeStack (clock_t t)
void SetTimeTotal (clock_t t)

Protected Member Functions

void AddDeletedWords (const Hypothesis &hypo)

Protected Attributes

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


Detailed Description

Definition at line 50 of file SentenceStats.h.


Constructor & Destructor Documentation

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

Definition at line 57 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 142 of file SentenceStats.h.

References m_numHyposCreated.

Referenced by Moses::Hypothesis::Hypothesis().

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 148 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 151 of file SentenceStats.h.

References m_numHyposNotBuilt.

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

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 138 of file SentenceStats.h.

References Moses::WordsBitmap::GetNumWordsCovered(), Moses::Hypothesis::GetTotalScore(), 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::AddTimeBuildHyp ( clock_t  t  )  [inline]

Definition at line 161 of file SentenceStats.h.

References m_timeBuildHyp.

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

Here is the caller graph for this function:

void Moses::SentenceStats::AddTimeCalcLM ( clock_t  t  )  [inline]

Definition at line 164 of file SentenceStats.h.

References m_timeCalcLM.

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

Here is the caller graph for this function:

void Moses::SentenceStats::AddTimeCollectOpts ( clock_t  t  )  [inline]

Definition at line 158 of file SentenceStats.h.

References m_timeCollectOpts.

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

Here is the caller graph for this function:

void Moses::SentenceStats::AddTimeEstimateScore ( clock_t  t  )  [inline]

Definition at line 167 of file SentenceStats.h.

References m_timeEstimateScore.

Referenced by Moses::Hypothesis::CalcExpectedScore().

Here is the caller graph for this function:

void Moses::SentenceStats::AddTimeOtherScore ( clock_t  t  )  [inline]

Definition at line 170 of file SentenceStats.h.

References m_timeOtherScore.

Referenced by Moses::Hypothesis::CalcRemainingScore(), and Moses::Hypothesis::CalcScore().

Here is the caller graph for this function:

void Moses::SentenceStats::AddTimeStack ( clock_t  t  )  [inline]

Definition at line 173 of file SentenceStats.h.

References m_timeStack.

Referenced by Moses::SearchNormal::ExpandHypothesis(), and Moses::SearchNormal::ProcessSentence().

Here is the caller graph for this function:

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

Definition at line 33 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 131 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 134 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::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 125 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 128 of file SentenceStats.h.

References m_insertedWords.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

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

Definition at line 104 of file SentenceStats.h.

References m_timeBuildHyp.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

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

Definition at line 107 of file SentenceStats.h.

References m_timeCalcLM.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

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

Definition at line 101 of file SentenceStats.h.

References m_timeCollectOpts.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

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

Definition at line 110 of file SentenceStats.h.

References m_timeEstimateScore.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

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

Definition at line 113 of file SentenceStats.h.

References m_timeOtherScore.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

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

Definition at line 116 of file SentenceStats.h.

References m_timeStack.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

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

Definition at line 119 of file SentenceStats.h.

References m_timeTotal.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

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

Definition at line 83 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 122 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]

void Moses::SentenceStats::SetTimeTotal ( clock_t  t  )  [inline]

Definition at line 176 of file SentenceStats.h.

References m_timeTotal.

Referenced by Moses::SearchNormal::ProcessSentence(), and Moses::SearchCubePruning::ProcessSentence().

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 204 of file SentenceStats.h.

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

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

Definition at line 205 of file SentenceStats.h.

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

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

Definition at line 189 of file SentenceStats.h.

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

Definition at line 191 of file SentenceStats.h.

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

Definition at line 192 of file SentenceStats.h.

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

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

Definition at line 193 of file SentenceStats.h.

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

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

Definition at line 190 of file SentenceStats.h.

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

Definition at line 188 of file SentenceStats.h.

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

Definition at line 195 of file SentenceStats.h.

Referenced by AddTimeBuildHyp(), GetTimeBuildHyp(), and Initialize().

Definition at line 197 of file SentenceStats.h.

Referenced by AddTimeCalcLM(), GetTimeCalcLM(), and Initialize().

Definition at line 194 of file SentenceStats.h.

Referenced by AddTimeCollectOpts(), GetTimeCollectOpts(), and Initialize().

Definition at line 196 of file SentenceStats.h.

Referenced by AddTimeEstimateScore(), GetTimeEstimateScore(), and Initialize().

Definition at line 198 of file SentenceStats.h.

Referenced by AddTimeOtherScore(), GetTimeOtherScore(), and Initialize().

clock_t Moses::SentenceStats::m_timeStack [protected]

Definition at line 199 of file SentenceStats.h.

Referenced by AddTimeStack(), GetTimeStack(), and Initialize().

clock_t Moses::SentenceStats::m_timeTotal [protected]

Definition at line 200 of file SentenceStats.h.

Referenced by GetTimeTotal(), and SetTimeTotal().

Definition at line 203 of file SentenceStats.h.

Referenced by GetTotalSourceWords(), and Initialize().


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

Generated on Wed Feb 8 22:04:09 2012 for Moses by  doxygen 1.5.9