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 <hieuhoang@gmail.com>2013-09-13 11:27:48 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-09-13 11:27:48 +0400
commit3b03d803d98194772e4b0ac6df7041c8c98c0119 (patch)
treeeb2511059b3991addfe1482c44000465a6091a67 /moses/ChartParser.cpp
parent9950279bc72c2acdf227ca30ef4bba2d900c241b (diff)
make sure Evaluate(inputPath) is called for chart translation options
Diffstat (limited to 'moses/ChartParser.cpp')
-rw-r--r--moses/ChartParser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/moses/ChartParser.cpp b/moses/ChartParser.cpp
index 7170c4d92..bc5b86a3e 100644
--- a/moses/ChartParser.cpp
+++ b/moses/ChartParser.cpp
@@ -219,6 +219,11 @@ void ChartParser::CreateInputPaths(const InputType &input)
}
}
+const InputPath &ChartParser::GetInputPath(WordsRange &range) const
+{
+ return GetInputPath(range.GetStartPos(), range.GetEndPos());
+}
+
const InputPath &ChartParser::GetInputPath(size_t startPos, size_t endPos) const
{
size_t offset = endPos - startPos;