diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-22 18:15:00 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-22 18:15:00 +0400 |
commit | 5f8e8f7db9730dc27f774ec6bf72e0b14386e394 (patch) | |
tree | 46b4189499a511ea9fe52a24907b601c2f222eb0 /moses/InputPath.h | |
parent | 00b21b4f530458a2c86f3582ae15af3b081c50d7 (diff) |
placeholder for chart decoding
Diffstat (limited to 'moses/InputPath.h')
-rw-r--r-- | moses/InputPath.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/moses/InputPath.h b/moses/InputPath.h index b06fd485a..1cffe79e3 100644 --- a/moses/InputPath.h +++ b/moses/InputPath.h @@ -34,9 +34,15 @@ protected: Phrase m_phrase; WordsRange m_range; const ScorePair *m_inputScore; - std::map<const PhraseDictionary*, std::pair<const TargetPhraseCollection*, const void*> > m_targetPhrases; const NonTerminalSet m_sourceNonTerms; + // for phrase-based model only + std::map<const PhraseDictionary*, std::pair<const TargetPhraseCollection*, const void*> > m_targetPhrases; + + // for syntax model onlu + mutable std::vector<std::vector<const Word*> > m_ruleSourceFromInputPath; + + bool SetPlaceholders(TargetPhrase *targetPhrase) const; public: explicit InputPath() @@ -75,6 +81,12 @@ public: return m_inputScore; } + std::vector<const Word*> &AddRuleSourceFromInputPath() const + { + m_ruleSourceFromInputPath.push_back(std::vector<const Word*>()); + return m_ruleSourceFromInputPath.back(); + } + }; }; |