blob: 9b17691e185bf745e163f52424d626c5a7673f85 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// memscore - in-memory phrase scoring for Statistical Machine Translation
// Christian Hardmeier, FBK-irst, Trento, 2010
// $Id$
#ifndef MEMSCORE_H
#define MEMSCORE_H
#include <sstream>
#include <string>
#include <utility>
#include "config.h"
#ifndef HAVE_PTRDIFF_T
typedef long ptrdiff_t;
#endif
#ifdef __GNUC__
#define NORETURN __attribute__ ((noreturn))
#else
#define NORETURN
#endif
void usage() NORETURN;
typedef double Score;
typedef unsigned int Count;
typedef unsigned int Phrase;
typedef ptrdiff_t DataIndex;
typedef std::pair<Phrase,Phrase> PhrasePair;
typedef char *PhrasePairData;
typedef std::string String;
typedef std::istringstream IStringStream;
/* phrasetable.h */
class PhraseText;
class PhraseInfo;
class PhraseInfoList;
class PhraseAlignment;
class PhrasePairInfo;
class PhraseTable;
/* scorer.h */
class PhraseScorer;
/* statistic.h */
class PhraseStatistic;
/* IRSTLM */
class lmtable;
class ngram;
#endif
|