summaryrefslogtreecommitdiff
path: root/klm/lm/max_order.hh
blob: bc8687cd7ddafd0ea8e7f14c81a25565e2f7ab5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* IF YOUR BUILD SYSTEM PASSES -DKENLM_MAX_ORDER, THEN CHANGE THE BUILD SYSTEM.
 * If not, this is the default maximum order.  
 * Having this limit means that State can be
 * (kMaxOrder - 1) * sizeof(float) bytes instead of
 * sizeof(float*) + (kMaxOrder - 1) * sizeof(float) + malloc overhead
 */
#ifndef KENLM_MAX_ORDER
#define KENLM_MAX_ORDER 6
#endif
#ifndef KENLM_ORDER_MESSAGE
#define KENLM_ORDER_MESSAGE "Edit klm/lm/max_order.hh."
#endif