blob: cc74d33a41ec964685b4b6b4165744d1c61db71b [file] [log] [blame]
#ifndef LM_INTERPOLATE_MERGE_VOCAB_H
#define LM_INTERPOLATE_MERGE_VOCAB_H
#include "lm/word_index.hh"
#include "util/file.hh"
#include "util/fixed_array.hh"
namespace lm {
class EnumerateVocab;
namespace interpolate {
class UniversalVocab;
// Takes ownership of vocab_files.
// The combined vocabulary is enumerated with enumerate.
// Returns the size of the combined vocabulary.
WordIndex MergeVocab(util::FixedArray<util::scoped_fd> &vocab_files, UniversalVocab &vocab, EnumerateVocab &enumerate);
}} // namespaces
#endif // LM_INTERPOLATE_MERGE_VOCAB_H