summaryrefslogtreecommitdiff
path: root/klm/lm/config.cc
diff options
context:
space:
mode:
Diffstat (limited to 'klm/lm/config.cc')
-rw-r--r--klm/lm/config.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/klm/lm/config.cc b/klm/lm/config.cc
new file mode 100644
index 00000000..2831d578
--- /dev/null
+++ b/klm/lm/config.cc
@@ -0,0 +1,22 @@
+#include "lm/config.hh"
+
+#include <iostream>
+
+namespace lm {
+namespace ngram {
+
+Config::Config() :
+ messages(&std::cerr),
+ enumerate_vocab(NULL),
+ unknown_missing(COMPLAIN),
+ 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