#include <SentenceStats.h>
Definition at line 52 of file SentenceStats.h.
Moses::SentenceStats::SentenceStats | ( | const InputType & | source | ) | [inline] |
Definition at line 59 of file SentenceStats.h.
References Initialize().
void Moses::SentenceStats::AddCreated | ( | ) | [inline] |
Definition at line 148 of file SentenceStats.h.
References m_numHyposCreated.
Referenced by Moses::Manager::GetNextHypoId().
void Moses::SentenceStats::AddDeletedWords | ( | const Hypothesis & | hypo | ) | [protected] |
Definition at line 43 of file SentenceStats.cpp.
References Moses::Hypothesis::GetCurrSourceWordsRange(), Moses::Hypothesis::GetCurrTargetWordsRange(), Moses::TranslationOption::GetInputPath(), Moses::Range::GetNumWordsCovered(), Moses::InputPath::GetPhrase(), Moses::Hypothesis::GetPrevHypo(), Moses::Hypothesis::GetTranslationOption(), m_deletedWords, and NULL.
Referenced by CalcFinalStats().
void Moses::SentenceStats::AddDiscarded | ( | ) | [inline] |
Definition at line 163 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 157 of file SentenceStats.h.
References m_numHyposEarlyDiscarded.
Referenced by Moses::SearchNormal::ExpandHypothesis().
void Moses::SentenceStats::AddNotBuilt | ( | ) | [inline] |
Definition at line 160 of file SentenceStats.h.
References m_numHyposNotBuilt.
Referenced by Moses::SearchNormal::ExpandHypothesis().
void Moses::SentenceStats::AddPopped | ( | ) | [inline] |
Definition at line 151 of file SentenceStats.h.
References m_numHyposPopped.
Referenced by Moses::SearchCubePruning::Decode().
void Moses::SentenceStats::AddPruning | ( | ) | [inline] |
Definition at line 154 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 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().
void Moses::SentenceStats::CalcFinalStats | ( | const Hypothesis & | bestHypo | ) |
Definition at line 36 of file SentenceStats.cpp.
References AddDeletedWords().
Referenced by Moses::Manager::CalcDecoderStatistics().
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<<().
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<<().
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::GetNumHyposPopped | ( | ) | const [inline] |
Definition at line 83 of file SentenceStats.h.
References m_numHyposPopped.
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 131 of file SentenceStats.h.
References m_deletedWords.
Referenced by Moses::operator<<().
size_t Moses::SentenceStats::GetNumWordsInserted | ( | ) | const [inline] |
Definition at line 134 of file SentenceStats.h.
References m_insertedWords.
Referenced by Moses::operator<<().
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<<().
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<<().
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<<().
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<<().
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<<().
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<<().
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<<().
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<<().
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<<().
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<<().
size_t Moses::SentenceStats::GetTotalSourceWords | ( | ) | const [inline] |
Definition at line 128 of file SentenceStats.h.
References m_totalSourceWords.
Referenced by Moses::operator<<().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
unsigned int Moses::SentenceStats::m_numHyposDiscarded [protected] |
Definition at line 237 of file SentenceStats.h.
Referenced by AddDiscarded(), GetNumHyposDiscarded(), and Initialize().
unsigned int Moses::SentenceStats::m_numHyposEarlyDiscarded [protected] |
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().
std::vector<RecombinationInfo> Moses::SentenceStats::m_recombinationInfos [protected] |
Definition at line 233 of file SentenceStats.h.
Referenced by AddRecombination(), GetNumHyposRecombined(), and Initialize().
Timer Moses::SentenceStats::m_timeBuildHyp [protected] |
Definition at line 241 of file SentenceStats.h.
Referenced by GetTimeBuildHyp(), StartTimeBuildHyp(), and StopTimeBuildHyp().
Timer Moses::SentenceStats::m_timeCalcLM [protected] |
Definition at line 244 of file SentenceStats.h.
Referenced by GetTimeCalcLM(), StartTimeCalcLM(), and StopTimeCalcLM().
Timer Moses::SentenceStats::m_timeCollectOpts [protected] |
Definition at line 240 of file SentenceStats.h.
Referenced by GetTimeCollectOpts(), StartTimeCollectOpts(), and StopTimeCollectOpts().
Timer Moses::SentenceStats::m_timeEstimateScore [protected] |
Definition at line 242 of file SentenceStats.h.
Referenced by GetTimeEstimateScore(), StartTimeEstimateScore(), and StopTimeEstimateScore().
Timer Moses::SentenceStats::m_timeManageCubes [protected] |
Definition at line 247 of file SentenceStats.h.
Referenced by GetTimeManageCubes(), StartTimeManageCubes(), and StopTimeManageCubes().
Timer Moses::SentenceStats::m_timeOtherScore [protected] |
Definition at line 243 of file SentenceStats.h.
Referenced by GetTimeOtherScore(), StartTimeOtherScore(), and StopTimeOtherScore().
Timer Moses::SentenceStats::m_timeSetupCubes [protected] |
Definition at line 246 of file SentenceStats.h.
Referenced by GetTimeSetupCubes(), StartTimeSetupCubes(), and StopTimeSetupCubes().
Timer Moses::SentenceStats::m_timeStack [protected] |
Definition at line 245 of file SentenceStats.h.
Referenced by GetTimeStack(), StartTimeStack(), and StopTimeStack().
Timer Moses::SentenceStats::m_timeTotal [protected] |
Definition at line 248 of file SentenceStats.h.
Referenced by GetTimeTotal(), StartTimeTotal(), and StopTimeTotal().
size_t Moses::SentenceStats::m_totalSourceWords [protected] |
Definition at line 251 of file SentenceStats.h.
Referenced by GetTotalSourceWords(), and Initialize().