summaryrefslogtreecommitdiff
path: root/klm/lm/max_order.hh
blob: aff9de275f2762cdf420f8938791fe32108f500e (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 = 5;

} // namespace ngram
} // namespace lm

#endif // LM_MAX_ORDER__