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:
authorHieu Hoang <hieu@hoang.co.uk>2014-05-12 22:44:31 +0400
committerHieu Hoang <hieu@hoang.co.uk>2014-05-12 22:44:31 +0400
commit6c9bc9f9887f27fab799bb42dad9f2df2ec96b34 (patch)
tree4cb12020d15a9ae50cd7413e9dcec7bee45ea72a /moses/ChartTranslationOptions.cpp
parent5f7c424f7f2aca44768655b245e5bead0e336cbd (diff)
delete chart translation option if -inf score. Add FF MaxSpanFreeNonTermSource to use it
Diffstat (limited to 'moses/ChartTranslationOptions.cpp')
-rw-r--r--moses/ChartTranslationOptions.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/moses/ChartTranslationOptions.cpp b/moses/ChartTranslationOptions.cpp
index 0bdad2b12..cf305c408 100644
--- a/moses/ChartTranslationOptions.cpp
+++ b/moses/ChartTranslationOptions.cpp
@@ -78,9 +78,12 @@ void ChartTranslationOptions::Evaluate(const InputType &input, const InputPath &
}
}
- m_collection.resize(m_collection.size() - numDiscard);
-
+ size_t newSize = m_collection.size() - numDiscard;
+ if (numDiscard) {
+ cerr << "numDiscard=" << numDiscard << " newSize=" << newSize << endl;
+ }
+ m_collection.resize(newSize);
}
void ChartTranslationOptions::SetInputPath(const InputPath *inputPath)