summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-02-02 21:12:08 -0500
committerChris Dyer <cdyer@cs.cmu.edu>2011-02-02 21:12:08 -0500
commit6e348e552ca8551cf54c1610f6e02f7058b60f09 (patch)
tree84d9da77f462fc980725380c9919d76812ef508e
parent7a00195194e8c71a7a1025b9f9786ca8452610c0 (diff)
forgotten kenlm file
-rw-r--r--klm/lm/max_order.hh14
1 files changed, 14 insertions, 0 deletions
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__