diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-26 12:20:08 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-26 12:20:08 +0300 |
commit | 52f4086dbc5b5621600d07c3edf9dbca2e8cd38e (patch) | |
tree | ee6594d8438364e6e2663eda02bbc6153b13d700 /moses/Search.h | |
parent | 486990fa3f8ed3150fe40f33f81c3c5ee2ccdd47 (diff) |
move m_bitmaps into Search class. Cube pruning uses it too
Diffstat (limited to 'moses/Search.h')
-rw-r--r-- | moses/Search.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/moses/Search.h b/moses/Search.h index 7d33535e0..9da16f1f5 100644 --- a/moses/Search.h +++ b/moses/Search.h @@ -6,6 +6,7 @@ #include "TranslationOption.h" #include "Phrase.h" #include "InputPath.h" +#include "Bitmaps.h" namespace Moses { @@ -32,7 +33,7 @@ public: //! Decode the sentence according to the specified search algorithm. virtual void Decode() = 0; - explicit Search(Manager& manager); + explicit Search(Manager& manager, const InputType &source); virtual ~Search() {} // Factory method @@ -41,9 +42,12 @@ public: protected: Manager& m_manager; + const InputType &m_source; + AllOptions const& m_options; + InputPath m_inputPath; // for initial hypo TranslationOption m_initialTransOpt; /**< used to seed 1st hypo */ - AllOptions const& m_options; + Bitmaps m_bitmaps; /** flag indicating that decoder ran out of time (see switch -time-out) */ size_t interrupted_flag; |