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

typedefs.h « eppex « contrib - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0665c4aa4a379640ca690a271f35bd42bb5bb9ef (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
/**
 * 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 */