diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-02-19 15:27:23 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-02-19 15:27:23 +0300 |
commit | 32de07502217879f0d354ec810c8e669f4d45d3c (patch) | |
tree | fafdf8f63d9902e4fd2b45f05902faa5d65df996 /moses/TranslationOptionCollection.h | |
parent | 6d4bad0f78ede5bcf7eaaea1de584f42bce8e91f (diff) |
beautify
Diffstat (limited to 'moses/TranslationOptionCollection.h')
-rw-r--r-- | moses/TranslationOptionCollection.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/moses/TranslationOptionCollection.h b/moses/TranslationOptionCollection.h index 880ede814..6ec18bf4f 100644 --- a/moses/TranslationOptionCollection.h +++ b/moses/TranslationOptionCollection.h @@ -96,7 +96,7 @@ public: TranslationOptionList* GetTranslationOptionList(size_t startPos, size_t endPos); - TranslationOptionList const* + TranslationOptionList const* GetTranslationOptionList(size_t startPos, size_t endPos) const; protected: @@ -140,18 +140,18 @@ public: virtual void CreateTranslationOptions(); //! Create translation options that exactly cover a specific input span. - virtual - bool + virtual + bool CreateTranslationOptionsForRange (const DecodeGraph &decodeStepList, size_t startPosition, size_t endPosition, bool adhereTableLimit, size_t graphInd) = 0; - + //!Check if this range has XML options - virtual - bool - HasXmlOptionsOverlappingRange(size_t startPosition, - size_t endPosition) const; + virtual + bool + HasXmlOptionsOverlappingRange(size_t startPosition, + size_t endPosition) const; //! Check if a subsumed XML option constraint is satisfied virtual bool ViolatesXmlOptionsConstraint(size_t startPosition, size_t endPosition, TranslationOption *transOpt) const; @@ -167,8 +167,7 @@ public: //! list of trans opt for a particular span TranslationOptionList const* - GetTranslationOptionList(const WordsRange &coverage) const - { + GetTranslationOptionList(const WordsRange &coverage) const { return GetTranslationOptionList(coverage.GetStartPos(), coverage.GetEndPos()); } |