diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-30 18:03:47 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-30 18:03:47 +0400 |
commit | 1d40a604df65706a468857237d2c7e4852b14d57 (patch) | |
tree | a81b4d2aadbd1fa1211dfa99dbc81b054e29ecd1 /moses/ChartParser.h | |
parent | 2e6266c85a45961bb495b99b409b9248430da605 (diff) |
create queue of InputPath objects. Starting SCFG parsing with lattices and conf net
Diffstat (limited to 'moses/ChartParser.h')
-rw-r--r-- | moses/ChartParser.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/moses/ChartParser.h b/moses/ChartParser.h index 1ff99480d..9fd73e8a9 100644 --- a/moses/ChartParser.h +++ b/moses/ChartParser.h @@ -21,11 +21,11 @@ #pragma once -#include "WordsRange.h" -#include "StackVec.h" - #include <list> #include <vector> +#include "WordsRange.h" +#include "StackVec.h" +#include "InputPath.h" namespace Moses { @@ -50,7 +50,6 @@ public: private: std::vector<Phrase*> m_unksrcs; std::list<TargetPhraseCollection*> m_cacheTargetPhraseCollection; - StackVec m_emptyStackVec; }; class ChartParser @@ -66,6 +65,15 @@ private: std::vector <DecodeGraph*> m_decodeGraphList; std::vector<ChartRuleLookupManager*> m_ruleLookupManagers; InputType const& m_source; /**< source sentence to be translated */ + + InputPathList m_phraseDictionaryQueue; + + typedef std::vector< std::vector<InputPath*> > TargetPhraseMatrix; + TargetPhraseMatrix m_targetPhrasesfromPt; /*< contains translation options */ + + void CreateInputPaths(const InputType &input); + InputPath &GetInputPath(size_t startPos, size_t endPos); + }; } |