2010-01-18 17:52:34 +03:00
|
|
|
// 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;
|
|
|
|
|
2011-02-24 16:57:11 +03:00
|
|
|
class PhraseStatistic
|
|
|
|
{
|
2010-01-18 17:52:34 +03:00
|
|
|
protected:
|
2011-02-24 16:57:11 +03:00
|
|
|
bool computation_done_;
|
2010-01-18 17:52:34 +03:00
|
|
|
|
|
|
|
public:
|
2011-02-24 16:57:11 +03:00
|
|
|
PhraseStatistic() : computation_done_(false) {}
|
|
|
|
virtual ~PhraseStatistic() {}
|
2010-01-18 17:52:34 +03:00
|
|
|
|
2011-02-24 16:57:11 +03:00
|
|
|
virtual void attach(PhraseInfoList &pilist) = 0;
|
|
|
|
virtual void compute_statistic() = 0;
|
|
|
|
virtual Score get_score(PhraseInfo &pi) = 0;
|
2010-01-18 17:52:34 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|