Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Sennrich <rico.sennrich@gmx.ch>2014-03-26 15:23:23 +0400
committerRico Sennrich <rico.sennrich@gmx.ch>2014-03-26 15:23:59 +0400
commit1f435340f09f6fe8f7514df00ccf27ef5e765707 (patch)
tree1fcbb710929021847cbeb48878291a8e34151c2e /moses/ChartTranslationOptions.cpp
parentc8682e9420b412340a952d70e3189a5eabb2ae2b (diff)
faster pruning in chart decoding
Diffstat (limited to 'moses/ChartTranslationOptions.cpp')
-rw-r--r--moses/ChartTranslationOptions.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/moses/ChartTranslationOptions.cpp b/moses/ChartTranslationOptions.cpp
index 59cbe1463..641d15da5 100644
--- a/moses/ChartTranslationOptions.cpp
+++ b/moses/ChartTranslationOptions.cpp
@@ -51,23 +51,6 @@ ChartTranslationOptions::~ChartTranslationOptions()
}
-float ChartTranslationOptions::CalcEstimateOfBestScore(
- const TargetPhraseCollection &tpc,
- const StackVec &stackVec)
-{
- const TargetPhrase &targetPhrase = **(tpc.begin());
- float estimateOfBestScore = targetPhrase.GetFutureScore();
- for (StackVec::const_iterator p = stackVec.begin(); p != stackVec.end();
- ++p) {
- const HypoList *stack = (*p)->GetStack().cube;
- assert(stack);
- assert(!stack->empty());
- const ChartHypothesis &bestHypo = **(stack->begin());
- estimateOfBestScore += bestHypo.GetTotalScore();
- }
- return estimateOfBestScore;
-}
-
void ChartTranslationOptions::Evaluate(const InputType &input, const InputPath &inputPath)
{
SetInputPath(&inputPath);