diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-02-06 01:47:25 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-02-06 01:47:25 +0300 |
commit | 35673f4274c5166f3b762709fb9b82e4409ad77c (patch) | |
tree | 4d27b35c90e3f2ef034496dc068d52579fab6db5 /moses/TranslationOptionCollectionText.cpp | |
parent | 19e7cf216ce656cb57c3c19b0def012c8c0adcd1 (diff) |
Changed return type of CreateTranslationOptionsForRange(...) from void to bool. Reformatting.
Diffstat (limited to 'moses/TranslationOptionCollectionText.cpp')
-rw-r--r-- | moses/TranslationOptionCollectionText.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/moses/TranslationOptionCollectionText.cpp b/moses/TranslationOptionCollectionText.cpp index 2db62fc8f..0f7671a70 100644 --- a/moses/TranslationOptionCollectionText.cpp +++ b/moses/TranslationOptionCollectionText.cpp @@ -171,21 +171,18 @@ void TranslationOptionCollectionText::CreateTranslationOptions() * \param lastPos last position in input sentence * \param adhereTableLimit whether phrase & generation table limits are adhered to */ -void TranslationOptionCollectionText::CreateTranslationOptionsForRange( - const DecodeGraph &decodeGraph - , size_t startPos - , size_t endPos - , bool adhereTableLimit - , size_t graphInd) +bool +TranslationOptionCollectionText:: +CreateTranslationOptionsForRange +(const DecodeGraph &decodeGraph, size_t startPos, size_t endPos, + bool adhereTableLimit, size_t graphInd) { InputPath &inputPath = GetInputPath(startPos, endPos); - - TranslationOptionCollection::CreateTranslationOptionsForRange(decodeGraph - , startPos - , endPos - , adhereTableLimit - , graphInd - , inputPath); + + return + TranslationOptionCollection:: + CreateTranslationOptionsForRange + (decodeGraph, startPos, endPos, adhereTableLimit, graphInd, inputPath); } |