diff options
author | David Madl <git@abanbytes.eu> | 2015-11-16 15:49:20 +0300 |
---|---|---|
committer | David Madl <git@abanbytes.eu> | 2015-11-17 19:15:13 +0300 |
commit | 8729a2d47de40e169dc8ba464c586dc979b172fe (patch) | |
tree | f70766ec345acd8d7d4a12054c3f2ef1d5e27a0f /moses/SearchNormal.cpp | |
parent | 5fea16a9a6c60fae91b6f920320fb8ad936069ac (diff) |
Measure TimeOtherScore in Search instead of in Hypothesis
Diffstat (limited to 'moses/SearchNormal.cpp')
-rw-r--r-- | moses/SearchNormal.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/moses/SearchNormal.cpp b/moses/SearchNormal.cpp index 4d7fd8a2c..bca49a6af 100644 --- a/moses/SearchNormal.cpp +++ b/moses/SearchNormal.cpp @@ -307,7 +307,24 @@ void SearchNormal::ExpandHypothesis(const Hypothesis &hypothesis, stats.StopTimeBuildHyp(); } if (newHypo==NULL) return; + + IFVERBOSE(2) { + m_manager.GetSentenceStats().StartTimeOtherScore(); + } newHypo->EvaluateWhenApplied(estimatedScore); + IFVERBOSE(2) { + m_manager.GetSentenceStats().StopTimeOtherScore(); + + // TODO: these have been meaningless for a while. + // At least since commit 67fb5c + // should now be measured in SearchNormal.cpp:254 instead, around CalcFutureScore2() + // CalcFutureScore2() also called in BackwardsEdge::Initialize(). + // + // however, CalcFutureScore2() should be quick + // since it uses dynamic programming results in SquareMatrix + m_manager.GetSentenceStats().StartTimeEstimateScore(); + m_manager.GetSentenceStats().StopTimeEstimateScore(); + } } else // early discarding: check if hypothesis is too bad to build { |