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>2013-08-09 13:27:46 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-09 13:27:46 +0400
commitf4d534ffd7a4a0f2e5fa6c1a2455aa383fcb367e (patch)
tree8d0a523c56d9232d4f345f9e0a1648deda7f3e4b /moses/ChartTranslationOptions.cpp
parent59e7a179cafd61aaaefd1ec91e248617d40e14bc (diff)
add InputPath objects of chart decoding. Start on lattice input for chart decoding
Diffstat (limited to 'moses/ChartTranslationOptions.cpp')
-rw-r--r--moses/ChartTranslationOptions.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/moses/ChartTranslationOptions.cpp b/moses/ChartTranslationOptions.cpp
index 5ba88a0db..44223af72 100644
--- a/moses/ChartTranslationOptions.cpp
+++ b/moses/ChartTranslationOptions.cpp
@@ -26,6 +26,23 @@
namespace Moses
{
+ChartTranslationOptions::ChartTranslationOptions(const TargetPhraseCollection &targetPhraseColl,
+ const StackVec &stackVec,
+ const WordsRange &wordsRange,
+ float score)
+ : m_stackVec(stackVec)
+ , m_targetPhraseCollection(&targetPhraseColl)
+ , m_wordsRange(&wordsRange)
+ , m_estimateOfBestScore(score)
+{
+
+}
+
+ChartTranslationOptions::~ChartTranslationOptions()
+{
+
+}
+
float ChartTranslationOptions::CalcEstimateOfBestScore(
const TargetPhraseCollection &tpc,
const StackVec &stackVec)