mosesdecoder/moses/ChartParserCallback.h

31 lines
616 B
C
Raw Normal View History

#pragma once
#include "StackVec.h"
#include <list>
2013-05-29 21:16:15 +04:00
namespace Moses
{
class TargetPhraseCollection;
class WordsRange;
class TargetPhrase;
class InputPath;
class InputType;
2013-05-29 21:16:15 +04:00
class ChartParserCallback
{
public:
virtual ~ChartParserCallback() {}
2013-05-29 21:16:15 +04:00
virtual void Add(const TargetPhraseCollection &, const StackVec &, const WordsRange &) = 0;
2013-05-29 21:16:15 +04:00
virtual bool Empty() const = 0;
2013-05-29 21:16:15 +04:00
virtual void AddPhraseOOV(TargetPhrase &phrase, std::list<TargetPhraseCollection*> &waste_memory, const WordsRange &range) = 0;
virtual void Evaluate(const InputType &input, const InputPath &inputPath) = 0;
};
} // namespace Moses