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

statistic.h « memscore « contrib - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2061a6608ed676003a4b18a9c8065b1d0f302f48 (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
// memscore - in-memory phrase scoring for Statistical Machine Translation
// Christian Hardmeier, FBK-irst, Trento, 2010
// $Id$

#ifndef STATISTIC_H
#define STATISTIC_H

#include "memscore.h"

class PhraseInfoList;

class PhraseStatistic
{
protected:
  bool computation_done_;

public:
  PhraseStatistic() : computation_done_(false) {}
  virtual ~PhraseStatistic() {}

  virtual void attach(PhraseInfoList &pilist) = 0;
  virtual void compute_statistic() = 0;
  virtual Score get_score(PhraseInfo &pi) = 0;
};

#endif