summaryrefslogtreecommitdiff
path: root/klm/lm/word_index.hh
diff options
context:
space:
mode:
Diffstat (limited to 'klm/lm/word_index.hh')
-rw-r--r--klm/lm/word_index.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/klm/lm/word_index.hh b/klm/lm/word_index.hh
new file mode 100644
index 00000000..67841c30
--- /dev/null
+++ b/klm/lm/word_index.hh
@@ -0,0 +1,11 @@
+// Separate header because this is used often.
+#ifndef LM_WORD_INDEX__
+#define LM_WORD_INDEX__
+
+namespace lm {
+typedef unsigned int WordIndex;
+} // namespace lm
+
+typedef lm::WordIndex LMWordIndex;
+
+#endif