summaryrefslogtreecommitdiff
path: root/klm/lm/config.cc
blob: d8773fe5aa88177ab54f1fdc59c60f12417f3f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "lm/config.hh"

#include <iostream>

namespace lm {
namespace ngram {

Config::Config() :
  messages(&std::cerr),
  enumerate_vocab(NULL),
  unknown_missing(COMPLAIN),
  sentence_marker_missing(THROW_UP),
  unknown_missing_prob(0.0),
  probing_multiplier(1.5),
  building_memory(1073741824ULL), // 1 GB
  temporary_directory_prefix(NULL),
  arpa_complain(ALL),
  write_mmap(NULL),
  include_vocab(true),
  load_method(util::POPULATE_OR_READ) {}

} // namespace ngram
} // namespace lm