2014-06-02 21:28:02 +04:00
|
|
|
#ifndef LM_BUILDER_HEADER_INFO_H
|
|
|
|
#define LM_BUILDER_HEADER_INFO_H
|
2013-01-18 19:58:54 +04:00
|
|
|
|
|
|
|
#include <string>
|
2015-01-22 19:42:46 +03:00
|
|
|
#include <vector>
|
2013-01-18 19:58:54 +04:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
// Some configuration info that is used to add
|
|
|
|
// comments to the beginning of an ARPA file
|
|
|
|
struct HeaderInfo {
|
2015-01-22 19:42:46 +03:00
|
|
|
std::string input_file;
|
|
|
|
uint64_t token_count;
|
|
|
|
std::vector<uint64_t> counts_pruned;
|
2013-01-18 19:58:54 +04:00
|
|
|
|
2015-01-22 19:42:46 +03:00
|
|
|
HeaderInfo() {}
|
|
|
|
|
|
|
|
HeaderInfo(const std::string& input_file_in, uint64_t token_count_in, const std::vector<uint64_t> &counts_pruned_in)
|
|
|
|
: input_file(input_file_in), token_count(token_count_in), counts_pruned(counts_pruned_in) {}
|
2013-01-18 19:58:54 +04:00
|
|
|
|
|
|
|
// TODO: Add smoothing type
|
|
|
|
// TODO: More info if multiple models were interpolated
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|