mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-07 12:10:36 +03:00
a0b6abdfd3
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3901 1f5c12ca-751b-0410-a591-d2e778427230
41 lines
794 B
C++
41 lines
794 B
C++
#ifndef moses_Search_h
|
|
#define moses_Search_h
|
|
|
|
#include <vector>
|
|
#include "TypeDef.h"
|
|
#include "Phrase.h"
|
|
|
|
namespace Moses
|
|
{
|
|
|
|
class HypothesisStack;
|
|
class Hypothesis;
|
|
class InputType;
|
|
class TranslationOptionCollection;
|
|
class Manager;
|
|
|
|
class Search
|
|
{
|
|
public:
|
|
virtual const std::vector < HypothesisStack* >& GetHypothesisStacks() const = 0;
|
|
virtual const Hypothesis *GetBestHypothesis() const = 0;
|
|
virtual void ProcessSentence() = 0;
|
|
Search(Manager& manager) : m_manager(manager) {}
|
|
virtual ~Search()
|
|
{}
|
|
|
|
// Factory
|
|
static Search *CreateSearch(Manager& manager, const InputType &source, SearchAlgorithm searchAlgorithm,
|
|
const TranslationOptionCollection &transOptColl);
|
|
|
|
protected:
|
|
|
|
const Phrase *m_constraint;
|
|
Manager& m_manager;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
#endif
|