summaryrefslogtreecommitdiff
path: root/klm/lm/max_order.hh
blob: 71cd23dd2b610140e933250c7e15bb03a946cab9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef LM_MAX_ORDER__
#define LM_MAX_ORDER__
namespace lm {
namespace ngram {
// If you need higher order, change this and recompile.  
// Having this limit means that State can be
// (kMaxOrder - 1) * sizeof(float) bytes instead of
// sizeof(float*) + (kMaxOrder - 1) * sizeof(float) + malloc overhead
const unsigned char kMaxOrder = 6;

} // namespace ngram
} // namespace lm

#endif // LM_MAX_ORDER__