summaryrefslogtreecommitdiff
path: root/klm/lm
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-09-12 12:01:26 +0100
committerKenneth Heafield <github@kheafield.com>2012-09-12 12:01:26 +0100
commitc26c35a9bcbb4d42ae50ad0a75c1b5fb59702bd1 (patch)
treeeced40cfee4bff7c4cd3fc644016e45f7903a55a /klm/lm
parent2ca3db90bd0a2e9a8619d2ebec7c6ac723838aca (diff)
Refactor search so that it knows even less, but keeps track of edge pointers
Diffstat (limited to 'klm/lm')
-rw-r--r--klm/lm/word_index.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/klm/lm/word_index.hh b/klm/lm/word_index.hh
index 67841c30..e09557a7 100644
--- a/klm/lm/word_index.hh
+++ b/klm/lm/word_index.hh
@@ -2,8 +2,11 @@
#ifndef LM_WORD_INDEX__
#define LM_WORD_INDEX__
+#include <limits.h>
+
namespace lm {
typedef unsigned int WordIndex;
+const WordIndex kMaxWordIndex = UINT_MAX;
} // namespace lm
typedef lm::WordIndex LMWordIndex;