summaryrefslogtreecommitdiff
path: root/klm
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
commitfe974368f06123eaddbf61c075de273e9cda0f50 (patch)
tree08dfed162c8d14e7e359a07fbe3ea6f77a00f5f2 /klm
parent28d54113b99e87f218e9ac5ea1e0bfeefcfc483b (diff)
forgotten kenlm file
Diffstat (limited to 'klm')
-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__