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/eppex/typedefs.h')
-rw-r--r--contrib/eppex/typedefs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/eppex/typedefs.h b/contrib/eppex/typedefs.h
new file mode 100644
index 000000000..0665c4aa4
--- /dev/null
+++ b/contrib/eppex/typedefs.h
@@ -0,0 +1,24 @@
+/**
+ * Basic eppex configuration.
+ *
+ * $Id$
+ */
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#include "IndexedPhrasesPair.h"
+#include "LossyCounter.h"
+
+// Type capable of holding all words (tokens) indices:
+typedef unsigned int word_index_t;
+// Type capable of holding all orientation info indices:
+typedef unsigned char orientation_info_index_t;
+// Phrase Pair type.
+typedef IndexedPhrasesPair<orientation_info_index_t, word_index_t> indexed_phrases_pair_t;
+// Lossy Counter type.
+typedef LossyCounter<indexed_phrases_pair_t> PhrasePairsLossyCounter;
+// Shortcut to alignment interface.
+typedef indexed_phrases_pair_t::alignment_t alignment_t;
+
+#endif /* CONFIG_H */