summaryrefslogtreecommitdiff
path: root/klm/lm/trie.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-09-28 16:04:52 +0100
committerChris Dyer <cdyer@cs.cmu.edu>2011-09-28 16:04:52 +0100
commite4ead2deba4dedf53af7cf5640ccdb913c13bdf3 (patch)
treee63b58bff49b05fd0de26f8d64e1ad24c5ce00fe /klm/lm/trie.cc
parentce75d2ce4e405b6c5ddec069fc9844bed64d548d (diff)
parent8668b6a55854eda404e29a80ace4027e1ffd2e5b (diff)
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'klm/lm/trie.cc')
-rw-r--r--klm/lm/trie.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/klm/lm/trie.cc b/klm/lm/trie.cc
index 4e60b184..20075bb8 100644
--- a/klm/lm/trie.cc
+++ b/klm/lm/trie.cc
@@ -91,16 +91,14 @@ template <class Quant, class Bhiksha> bool BitPackedMiddle<Quant, Bhiksha>::Find
if (!FindBitPacked(base_, word_mask_, word_bits_, total_bits_, range.begin, range.end, max_vocab_, word, at_pointer)) {
return false;
}
- uint64_t index = at_pointer;
+ pointer = at_pointer;
at_pointer *= total_bits_;
at_pointer += word_bits_;
- pointer = at_pointer;
-
quant_.Read(base_, at_pointer, prob, backoff);
at_pointer += quant_.TotalBits();
- bhiksha_.ReadNext(base_, at_pointer, index, total_bits_, range);
+ bhiksha_.ReadNext(base_, at_pointer, pointer, total_bits_, range);
return true;
}