#include <SentenceStats.h>
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< RecombinationInfo > | m_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 |
Definition at line 50 of file SentenceStats.h.
| Moses::SentenceStats::SentenceStats | ( | const InputType & | source | ) | [inline] |
Definition at line 57 of file SentenceStats.h.
References Initialize().

| void Moses::SentenceStats::AddCreated | ( | ) | [inline] |
Definition at line 142 of file SentenceStats.h.
References m_numHyposCreated.
Referenced by Moses::Hypothesis::Hypothesis().

| void Moses::SentenceStats::AddDeletedWords | ( | const Hypothesis & | hypo | ) | [protected] |
Definition at line 40 of file SentenceStats.cpp.
References Moses::Hypothesis::GetCurrSourceWordsRange(), Moses::Hypothesis::GetCurrTargetWordsRange(), Moses::WordsRange::GetNumWordsCovered(), Moses::Hypothesis::GetPrevHypo(), Moses::Hypothesis::GetSourcePhrase(), m_deletedWords, and NULL.
Referenced by CalcFinalStats().


| void Moses::SentenceStats::AddDiscarded | ( | ) | [inline] |
Definition at line 154 of file SentenceStats.h.
References m_numHyposDiscarded.
Referenced by Moses::ChartHypothesisCollection::AddHypothesis(), Moses::HypothesisStackNormal::AddPrune(), and Moses::HypothesisStackCubePruning::AddPrune().

| void Moses::SentenceStats::AddEarlyDiscarded | ( | ) | [inline] |
Definition at line 148 of file SentenceStats.h.
References m_numHyposEarlyDiscarded.
Referenced by Moses::SearchNormal::ExpandHypothesis().

| void Moses::SentenceStats::AddNotBuilt | ( | ) | [inline] |
Definition at line 151 of file SentenceStats.h.
References m_numHyposNotBuilt.
Referenced by Moses::SearchNormal::ExpandHypothesis().

| void Moses::SentenceStats::AddPruning | ( | ) | [inline] |
Definition at line 145 of file SentenceStats.h.
References m_numHyposPruned.
Referenced by Moses::HypothesisStackNormal::PruneToSize(), Moses::HypothesisStackCubePruning::PruneToSize(), and Moses::ChartHypothesisCollection::PruneToSize().

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


| void Moses::SentenceStats::AddTimeBuildHyp | ( | clock_t | t | ) | [inline] |
Definition at line 161 of file SentenceStats.h.
References m_timeBuildHyp.
Referenced by Moses::SearchNormal::ExpandHypothesis().

| void Moses::SentenceStats::AddTimeCalcLM | ( | clock_t | t | ) | [inline] |
Definition at line 164 of file SentenceStats.h.
References m_timeCalcLM.
Referenced by Moses::LanguageModelImplementation::Evaluate().

| void Moses::SentenceStats::AddTimeCollectOpts | ( | clock_t | t | ) | [inline] |
Definition at line 158 of file SentenceStats.h.
References m_timeCollectOpts.
Referenced by Moses::Manager::ProcessSentence().

| void Moses::SentenceStats::AddTimeEstimateScore | ( | clock_t | t | ) | [inline] |
Definition at line 167 of file SentenceStats.h.
References m_timeEstimateScore.
Referenced by Moses::Hypothesis::CalcExpectedScore().

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

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

| void Moses::SentenceStats::CalcFinalStats | ( | const Hypothesis & | bestHypo | ) |
Definition at line 33 of file SentenceStats.cpp.
References AddDeletedWords().
Referenced by Moses::Manager::CalcDecoderStatistics().


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

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

| unsigned int Moses::SentenceStats::GetNumHyposDiscarded | ( | ) | const [inline] |
Definition at line 92 of file SentenceStats.h.
References m_numHyposDiscarded.
Referenced by Moses::operator<<().

| unsigned int Moses::SentenceStats::GetNumHyposEarlyDiscarded | ( | ) | const [inline] |
Definition at line 95 of file SentenceStats.h.
References m_numHyposEarlyDiscarded.
Referenced by Moses::operator<<().

| unsigned int Moses::SentenceStats::GetNumHyposNotBuilt | ( | ) | const [inline] |
Definition at line 98 of file SentenceStats.h.
References m_numHyposNotBuilt.
Referenced by Moses::operator<<().

| unsigned int Moses::SentenceStats::GetNumHyposPruned | ( | ) | const [inline] |
Definition at line 89 of file SentenceStats.h.
References m_numHyposPruned.
Referenced by Moses::operator<<().

| size_t Moses::SentenceStats::GetNumHyposRecombined | ( | ) | const [inline] |
Definition at line 86 of file SentenceStats.h.
References m_recombinationInfos.
Referenced by Moses::operator<<().

| size_t Moses::SentenceStats::GetNumWordsDeleted | ( | ) | const [inline] |
Definition at line 125 of file SentenceStats.h.
References m_deletedWords.
Referenced by Moses::operator<<().

| size_t Moses::SentenceStats::GetNumWordsInserted | ( | ) | const [inline] |
Definition at line 128 of file SentenceStats.h.
References m_insertedWords.
Referenced by Moses::operator<<().

| float Moses::SentenceStats::GetTimeBuildHyp | ( | ) | const [inline] |
Definition at line 104 of file SentenceStats.h.
References m_timeBuildHyp.
Referenced by Moses::operator<<().

| float Moses::SentenceStats::GetTimeCalcLM | ( | ) | const [inline] |
Definition at line 107 of file SentenceStats.h.
References m_timeCalcLM.
Referenced by Moses::operator<<().

| float Moses::SentenceStats::GetTimeCollectOpts | ( | ) | const [inline] |
Definition at line 101 of file SentenceStats.h.
References m_timeCollectOpts.
Referenced by Moses::operator<<().

| float Moses::SentenceStats::GetTimeEstimateScore | ( | ) | const [inline] |
Definition at line 110 of file SentenceStats.h.
References m_timeEstimateScore.
Referenced by Moses::operator<<().

| float Moses::SentenceStats::GetTimeOtherScore | ( | ) | const [inline] |
Definition at line 113 of file SentenceStats.h.
References m_timeOtherScore.
Referenced by Moses::operator<<().

| float Moses::SentenceStats::GetTimeStack | ( | ) | const [inline] |
Definition at line 116 of file SentenceStats.h.
References m_timeStack.
Referenced by Moses::operator<<().

| float Moses::SentenceStats::GetTimeTotal | ( | ) | const [inline] |
Definition at line 119 of file SentenceStats.h.
References m_timeTotal.
Referenced by Moses::operator<<().

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

| size_t Moses::SentenceStats::GetTotalSourceWords | ( | ) | const [inline] |
Definition at line 122 of file SentenceStats.h.
References m_totalSourceWords.
Referenced by Moses::operator<<().

| void Moses::SentenceStats::Initialize | ( | const InputType & | source | ) | [inline] |
Definition at line 60 of file SentenceStats.h.
References Moses::InputType::GetSize(), m_deletedWords, m_insertedWords, m_numHyposCreated, m_numHyposDiscarded, m_numHyposEarlyDiscarded, m_numHyposNotBuilt, m_numHyposPruned, m_recombinationInfos, m_timeBuildHyp, m_timeCalcLM, m_timeCollectOpts, m_timeEstimateScore, m_timeOtherScore, m_timeStack, and m_totalSourceWords.
Referenced by SentenceStats().


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

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().
unsigned int Moses::SentenceStats::m_numHyposDiscarded [protected] |
Definition at line 191 of file SentenceStats.h.
Referenced by AddDiscarded(), GetNumHyposDiscarded(), and Initialize().
unsigned int Moses::SentenceStats::m_numHyposEarlyDiscarded [protected] |
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().
std::vector<RecombinationInfo> Moses::SentenceStats::m_recombinationInfos [protected] |
Definition at line 188 of file SentenceStats.h.
Referenced by AddRecombination(), GetNumHyposRecombined(), and Initialize().
clock_t Moses::SentenceStats::m_timeBuildHyp [protected] |
Definition at line 195 of file SentenceStats.h.
Referenced by AddTimeBuildHyp(), GetTimeBuildHyp(), and Initialize().
clock_t Moses::SentenceStats::m_timeCalcLM [protected] |
Definition at line 197 of file SentenceStats.h.
Referenced by AddTimeCalcLM(), GetTimeCalcLM(), and Initialize().
clock_t Moses::SentenceStats::m_timeCollectOpts [protected] |
Definition at line 194 of file SentenceStats.h.
Referenced by AddTimeCollectOpts(), GetTimeCollectOpts(), and Initialize().
clock_t Moses::SentenceStats::m_timeEstimateScore [protected] |
Definition at line 196 of file SentenceStats.h.
Referenced by AddTimeEstimateScore(), GetTimeEstimateScore(), and Initialize().
clock_t Moses::SentenceStats::m_timeOtherScore [protected] |
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] |
size_t Moses::SentenceStats::m_totalSourceWords [protected] |
Definition at line 203 of file SentenceStats.h.
Referenced by GetTotalSourceWords(), and Initialize().
1.5.9