Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ChartParserCallback.h « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9b03e1f5b504708ffd9ece362fe1ccf061de6a3e (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
27
28
29
30
31
32
33
34
#pragma once

#include "StackVec.h"

#include <list>

namespace Moses
{

class TargetPhraseCollection;
class WordsRange;
class TargetPhrase;
class InputPath;
class InputType;
class ChartCellLabel;

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;

  virtual void EvaluateWithSourceContext(const InputType &input, const InputPath &inputPath) = 0;

  virtual float GetBestScore(const ChartCellLabel *chartCell) const = 0;

};

} // namespace Moses