diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-13 11:27:48 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-13 11:27:48 +0400 |
commit | 3b03d803d98194772e4b0ac6df7041c8c98c0119 (patch) | |
tree | eb2511059b3991addfe1482c44000465a6091a67 /moses/ChartParser.cpp | |
parent | 9950279bc72c2acdf227ca30ef4bba2d900c241b (diff) |
make sure Evaluate(inputPath) is called for chart translation options
Diffstat (limited to 'moses/ChartParser.cpp')
-rw-r--r-- | moses/ChartParser.cpp | 5 |
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; |