Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
src/kenlm/lm/builder/header_info.hh
00001 #ifndef LM_BUILDER_HEADER_INFO_H
00002 #define LM_BUILDER_HEADER_INFO_H
00003 
00004 #include <string>
00005 #include <vector>
00006 #include <stdint.h>
00007 
00008 namespace lm { namespace builder {
00009 
00010 // Some configuration info that is used to add
00011 // comments to the beginning of an ARPA file
00012 struct HeaderInfo {
00013   std::string input_file;
00014   uint64_t token_count;
00015   std::vector<uint64_t> counts_pruned;
00016 
00017   HeaderInfo() {}
00018 
00019   HeaderInfo(const std::string& input_file_in, uint64_t token_count_in, const std::vector<uint64_t> &counts_pruned_in)
00020     : input_file(input_file_in), token_count(token_count_in), counts_pruned(counts_pruned_in) {}
00021 
00022   // TODO: Add smoothing type
00023   // TODO: More info if multiple models were interpolated
00024 };
00025 
00026 }} // namespaces
00027 
00028 #endif