diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
commit | 6249432407af8730c10bccc7894c0725fcaf5e47 (patch) | |
tree | 3ac1f094b9fdc199b04bc5ef209ce00e3596e37d /moses/ChartTranslationOptions.h | |
parent | 59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff) |
beautify
Diffstat (limited to 'moses/ChartTranslationOptions.h')
-rw-r--r-- | moses/ChartTranslationOptions.h | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/moses/ChartTranslationOptions.h b/moses/ChartTranslationOptions.h index 4910723f7..459c91659 100644 --- a/moses/ChartTranslationOptions.h +++ b/moses/ChartTranslationOptions.h @@ -35,7 +35,7 @@ namespace Moses */ class ChartTranslationOptions { - public: +public: /** Constructor \param targetPhraseColl @todo dunno \param stackVec @todo dunno @@ -43,13 +43,13 @@ class ChartTranslationOptions \param score @todo dunno */ ChartTranslationOptions(const TargetPhraseCollection &targetPhraseColl, - const StackVec &stackVec, - const WordsRange &wordsRange, - float score) - : m_stackVec(stackVec) - , m_targetPhraseCollection(&targetPhraseColl) - , m_wordsRange(&wordsRange) - , m_estimateOfBestScore(score) + const StackVec &stackVec, + const WordsRange &wordsRange, + float score) + : m_stackVec(stackVec) + , m_targetPhraseCollection(&targetPhraseColl) + , m_wordsRange(&wordsRange) + , m_estimateOfBestScore(score) {} ~ChartTranslationOptions() {} @@ -58,10 +58,12 @@ class ChartTranslationOptions const StackVec &); //! @todo dunno - const StackVec &GetStackVec() const { return m_stackVec; } + const StackVec &GetStackVec() const { + return m_stackVec; + } //! @todo isn't the translation suppose to just contain 1 target phrase, not a whole collection of them? - const TargetPhraseCollection &GetTargetPhraseCollection() const { + const TargetPhraseCollection &GetTargetPhraseCollection() const { return *m_targetPhraseCollection; } @@ -74,9 +76,11 @@ class ChartTranslationOptions * the estimate is the sum of the top target phrase's estimated score plus the * scores of the best child hypotheses. */ - inline float GetEstimateOfBestScore() const { return m_estimateOfBestScore; } + inline float GetEstimateOfBestScore() const { + return m_estimateOfBestScore; + } - private: +private: StackVec m_stackVec; //! vector of hypothesis list! const TargetPhraseCollection *m_targetPhraseCollection; |