mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +03:00
13 lines
614 B
C++
13 lines
614 B
C++
/* 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 "If your build system supports changing KENLM_MAX_ORDER, change it there and recompile. In the KenLM tarball or Moses, use e.g. `bjam --kenlm-max-order=6 -a'. Otherwise, edit lm/max_order.hh."
|
|
#endif
|