From fe974368f06123eaddbf61c075de273e9cda0f50 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Wed, 2 Feb 2011 21:12:08 -0500 Subject: forgotten kenlm file --- klm/lm/max_order.hh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 klm/lm/max_order.hh (limited to 'klm/lm/max_order.hh') diff --git a/klm/lm/max_order.hh b/klm/lm/max_order.hh new file mode 100644 index 00000000..71cd23dd --- /dev/null +++ b/klm/lm/max_order.hh @@ -0,0 +1,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__ -- cgit v1.2.3