diff options
Diffstat (limited to 'moses/ChartParser.h')
-rw-r--r-- | moses/ChartParser.h | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/moses/ChartParser.h b/moses/ChartParser.h index 9d8baa649..1ff99480d 100644 --- a/moses/ChartParser.h +++ b/moses/ChartParser.h @@ -39,31 +39,33 @@ class Phrase; class TargetPhraseCollection; class DecodeGraph; -class ChartParserUnknown { - public: - ChartParserUnknown(); - ~ChartParserUnknown(); +class ChartParserUnknown +{ +public: + ChartParserUnknown(); + ~ChartParserUnknown(); - void Process(const Word &sourceWord, const WordsRange &range, ChartParserCallback &to); + void Process(const Word &sourceWord, const WordsRange &range, ChartParserCallback &to); - private: - std::vector<Phrase*> m_unksrcs; - std::list<TargetPhraseCollection*> m_cacheTargetPhraseCollection; - StackVec m_emptyStackVec; +private: + std::vector<Phrase*> m_unksrcs; + std::list<TargetPhraseCollection*> m_cacheTargetPhraseCollection; + StackVec m_emptyStackVec; }; -class ChartParser { - public: - ChartParser(const InputType &source, ChartCellCollectionBase &cells); - ~ChartParser(); +class ChartParser +{ +public: + ChartParser(const InputType &source, ChartCellCollectionBase &cells); + ~ChartParser(); - void Create(const WordsRange &range, ChartParserCallback &to); + void Create(const WordsRange &range, ChartParserCallback &to); - private: - ChartParserUnknown m_unknown; - std::vector <DecodeGraph*> m_decodeGraphList; - std::vector<ChartRuleLookupManager*> m_ruleLookupManagers; - InputType const& m_source; /**< source sentence to be translated */ +private: + ChartParserUnknown m_unknown; + std::vector <DecodeGraph*> m_decodeGraphList; + std::vector<ChartRuleLookupManager*> m_ruleLookupManagers; + InputType const& m_source; /**< source sentence to be translated */ }; } |