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

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/memscore/memscore.h')
-rw-r--r--contrib/memscore/memscore.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/contrib/memscore/memscore.h b/contrib/memscore/memscore.h
new file mode 100644
index 000000000..9b17691e1
--- /dev/null
+++ b/contrib/memscore/memscore.h
@@ -0,0 +1,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