mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 19:23:13 +03:00
a3d97584a9
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3902 1f5c12ca-751b-0410-a591-d2e778427230
27 lines
520 B
C++
27 lines
520 B
C++
// 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
|