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

model_type.hh « lm - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5057ed251df201d625967daaa10252e035de7515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef LM_MODEL_TYPE__
#define LM_MODEL_TYPE__

namespace lm {
namespace ngram {

/* Not the best numbering system, but it grew this way for historical reasons
 * and I want to preserve existing binary files. */
typedef enum {HASH_PROBING=0, HASH_SORTED=1, TRIE_SORTED=2, QUANT_TRIE_SORTED=3, ARRAY_TRIE_SORTED=4, QUANT_ARRAY_TRIE_SORTED=5} ModelType;

const static ModelType kQuantAdd = static_cast<ModelType>(QUANT_TRIE_SORTED - TRIE_SORTED);
const static ModelType kArrayAdd = static_cast<ModelType>(ARRAY_TRIE_SORTED - TRIE_SORTED);

} // namespace ngram
} // namespace lm
#endif // LM_MODEL_TYPE__