diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-07 11:59:08 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-07 11:59:08 +0300 |
commit | 99b4b63c0cd857185cf2d99972d1150a8b2faf7f (patch) | |
tree | 6e976b55abc1cf3efa2ab21895f42ffe67e2eaad /moses/ChartParser.cpp | |
parent | b9bef2fc44fce020f78018cbc71f2f375f5071ee (diff) |
change signature of GetChartRuleCollection()
Diffstat (limited to 'moses/ChartParser.cpp')
-rw-r--r-- | moses/ChartParser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/ChartParser.cpp b/moses/ChartParser.cpp index a9a1e6aa1..40f18e7e8 100644 --- a/moses/ChartParser.cpp +++ b/moses/ChartParser.cpp @@ -191,7 +191,8 @@ void ChartParser::Create(const WordsRange &wordsRange, ChartParserCallback &to) last = min(last, wordsRange.GetStartPos()+maxSpan); } if (maxSpan == 0 || wordsRange.GetNumWordsCovered() <= maxSpan) { - ruleLookupManager.GetChartRuleCollection(wordsRange, last, to); + const InputPath &inputPath = GetInputPath(wordsRange); + ruleLookupManager.GetChartRuleCollection(inputPath, last, to); } } @@ -236,7 +237,7 @@ void ChartParser::CreateInputPaths(const InputType &input) } } -const InputPath &ChartParser::GetInputPath(WordsRange &range) const +const InputPath &ChartParser::GetInputPath(const WordsRange &range) const { return GetInputPath(range.GetStartPos(), range.GetEndPos()); } |