diff options
Diffstat (limited to 'moses/src/Search.h')
-rw-r--r-- | moses/src/Search.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/moses/src/Search.h b/moses/src/Search.h new file mode 100644 index 000000000..d5de3d112 --- /dev/null +++ b/moses/src/Search.h @@ -0,0 +1,36 @@ + +#pragma once + +#include <vector> +#include "TypeDef.h" +#include "Phrase.h" + +namespace Moses +{ + +class HypothesisStack; +class Hypothesis; +class InputType; +class TranslationOptionCollection; + +class Search +{ +public: + virtual const std::vector < HypothesisStack* >& GetHypothesisStacks() const = 0; + virtual const Hypothesis *GetBestHypothesis() const = 0; + virtual void ProcessSentence() = 0; + Search(); + virtual ~Search() + {} + + // Factory + static Search *CreateSearch(const InputType &source, SearchAlgorithm searchAlgorithm, const TranslationOptionCollection &transOptColl); + +protected: + + const Phrase *m_constraint; + +}; + + +} |