blob: 84ddb8b7572975f1a066e4cfc22d2efcb3308c8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#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
|