mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
25 lines
510 B
C++
25 lines
510 B
C++
#pragma once
|
|
|
|
#include "StackVec.h"
|
|
|
|
#include <list>
|
|
|
|
namespace Moses {
|
|
|
|
class TargetPhraseCollection;
|
|
class WordsRange;
|
|
class TargetPhrase;
|
|
|
|
class ChartParserCallback {
|
|
public:
|
|
virtual ~ChartParserCallback() {}
|
|
|
|
virtual void Add(const TargetPhraseCollection &, const StackVec &, const WordsRange &) = 0;
|
|
|
|
virtual bool Empty() const = 0;
|
|
|
|
virtual void AddPhraseOOV(TargetPhrase &phrase, std::list<TargetPhraseCollection*> &waste_memory, const WordsRange &range) = 0;
|
|
};
|
|
|
|
} // namespace Moses
|