summaryrefslogtreecommitdiff
path: root/klm/lm/config.cc
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-11-10 02:02:04 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-11-10 02:02:04 +0000
commit15b03336564d5e57e50693f19dd81b45076af5d4 (patch)
treec2072893a43f4c75f0ad5ebe3080bfa901faf18f /klm/lm/config.cc
parent1336aecfe930546f8836ffe65dd5ff78434084eb (diff)
new version of klm
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@706 ec762483-ff6d-05da-a07a-a48fb63a330f
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