summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decoder/ff_lm.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/decoder/ff_lm.cc b/decoder/ff_lm.cc
index 2b97bea8..e502ce93 100644
--- a/decoder/ff_lm.cc
+++ b/decoder/ff_lm.cc
@@ -1,4 +1,6 @@
-#define LM_FSA_SHORTEN_CONTEXT 1
+#ifndef LM_FSA_SHORTEN_CONTEXT
+# define LM_FSA_SHORTEN_CONTEXT 1
+#endif
// seems to work great - just not sure if it actually speeds anything up. theoretically slightly more compact (more sharing) forest, but unlikely to make a big difference
// virtual LogP contextBOW(const VocabIndex *context, unsigned length);