00001
00002
00003
00004 #ifndef LM_COMMON_RENUMBER_H
00005 #define LM_COMMON_RENUMBER_H
00006
00007 #include "lm/word_index.hh"
00008
00009 #include <cstddef>
00010
00011 namespace util { namespace stream { class ChainPosition; }}
00012
00013 namespace lm {
00014
00015 class Renumber {
00016 public:
00017
00018
00019 Renumber(const WordIndex *new_numbers, std::size_t order)
00020 : new_numbers_(new_numbers), order_(order) {}
00021
00022 void Run(const util::stream::ChainPosition &position);
00023
00024 private:
00025 const WordIndex *new_numbers_;
00026 std::size_t order_;
00027 };
00028
00029 }
00030 #endif // LM_COMMON_RENUMBER_H