Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-05-29 21:16:15 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-05-29 21:16:15 +0400
commit6249432407af8730c10bccc7894c0725fcaf5e47 (patch)
tree3ac1f094b9fdc199b04bc5ef209ce00e3596e37d /moses/ChartTranslationOptionList.h
parent59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff)
beautify
Diffstat (limited to 'moses/ChartTranslationOptionList.h')
-rw-r--r--moses/ChartTranslationOptionList.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/moses/ChartTranslationOptionList.h b/moses/ChartTranslationOptionList.h
index 0b56b1f61..a2979fcbc 100644
--- a/moses/ChartTranslationOptionList.h
+++ b/moses/ChartTranslationOptionList.h
@@ -32,27 +32,34 @@ class TargetPhraseCollection;
class WordsRange;
//! a vector of translations options for a specific range, in a specific sentence
-class ChartTranslationOptionList : public ChartParserCallback {
- public:
+class ChartTranslationOptionList : public ChartParserCallback
+{
+public:
ChartTranslationOptionList(size_t);
~ChartTranslationOptionList();
- const ChartTranslationOptions &Get(size_t i) const { return *m_collection[i]; }
+ const ChartTranslationOptions &Get(size_t i) const {
+ return *m_collection[i];
+ }
//! number of translation options
- size_t GetSize() const { return m_size; }
+ size_t GetSize() const {
+ return m_size;
+ }
void Add(const TargetPhraseCollection &, const StackVec &,
const WordsRange &);
void AddPhraseOOV(TargetPhrase &phrase, std::list<TargetPhraseCollection*> &waste_memory, const WordsRange &range);
- bool Empty() const { return m_size == 0; }
+ bool Empty() const {
+ return m_size == 0;
+ }
void Clear();
void ApplyThreshold();
- private:
+private:
typedef std::vector<ChartTranslationOptions*> CollType;
struct ScoreThresholdPred {