2010-11-06 03:40:16 +03:00
|
|
|
#include "lm/config.hh"
|
2010-10-27 21:50:40 +04:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
namespace lm {
|
|
|
|
namespace ngram {
|
|
|
|
|
|
|
|
Config::Config() :
|
2013-01-05 01:02:47 +04:00
|
|
|
show_progress(true),
|
2010-10-27 21:50:40 +04:00
|
|
|
messages(&std::cerr),
|
|
|
|
enumerate_vocab(NULL),
|
|
|
|
unknown_missing(COMPLAIN),
|
2011-02-24 22:37:39 +03:00
|
|
|
sentence_marker_missing(THROW_UP),
|
2011-05-17 20:43:05 +04:00
|
|
|
positive_log_probability(THROW_UP),
|
2011-03-21 17:40:21 +03:00
|
|
|
unknown_missing_logprob(-100.0),
|
2010-10-27 21:50:40 +04:00
|
|
|
probing_multiplier(1.5),
|
|
|
|
building_memory(1073741824ULL), // 1 GB
|
|
|
|
temporary_directory_prefix(NULL),
|
|
|
|
arpa_complain(ALL),
|
|
|
|
write_mmap(NULL),
|
2012-02-28 22:58:00 +04:00
|
|
|
write_method(WRITE_AFTER),
|
2010-10-27 21:50:40 +04:00
|
|
|
include_vocab(true),
|
2012-06-28 18:58:59 +04:00
|
|
|
rest_function(REST_MAX),
|
2011-06-27 02:21:44 +04:00
|
|
|
prob_bits(8),
|
|
|
|
backoff_bits(8),
|
2011-07-14 00:53:18 +04:00
|
|
|
pointer_bhiksha_bits(22),
|
2010-11-06 03:40:16 +03:00
|
|
|
load_method(util::POPULATE_OR_READ) {}
|
2010-10-27 21:50:40 +04:00
|
|
|
|
|
|
|
} // namespace ngram
|
|
|
|
} // namespace lm
|