|
#ifndef LM_BUILDER_INITIAL_PROBABILITIES_H |
|
#define LM_BUILDER_INITIAL_PROBABILITIES_H |
|
|
|
#include "lm/builder/discount.hh" |
|
#include "lm/word_index.hh" |
|
#include "util/stream/config.hh" |
|
|
|
#include <vector> |
|
|
|
namespace util { namespace stream { class Chains; } } |
|
|
|
namespace lm { |
|
class SpecialVocab; |
|
namespace builder { |
|
|
|
struct InitialProbabilitiesConfig { |
|
|
|
util::stream::ChainConfig adder_in; |
|
util::stream::ChainConfig adder_out; |
|
|
|
bool interpolate_unigrams; |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void InitialProbabilities( |
|
const InitialProbabilitiesConfig &config, |
|
const std::vector<Discount> &discounts, |
|
util::stream::Chains &primary, |
|
util::stream::Chains &second_in, |
|
util::stream::Chains &gamma_out, |
|
const std::vector<uint64_t> &prune_thresholds, |
|
bool prune_vocab, |
|
const SpecialVocab &vocab); |
|
|
|
} |
|
} |
|
|
|
#endif |
|
|