mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 07:42:21 +03:00
14e02978fc
Avoid unspecified behavior of mmap when a file is resized reported by Christian Hardmeier
Fixes for Mavericks and a workaround for Boost's broken semaphore
Clean clang compile (of kenlm)
Merged some of 744376b3fb
but also undid some of it because it was just masking a fundaemntal problem with pread rather than working around windows limitations
31 lines
680 B
C++
31 lines
680 B
C++
#include "lm/config.hh"
|
|
|
|
#include <iostream>
|
|
|
|
namespace lm {
|
|
namespace ngram {
|
|
|
|
Config::Config() :
|
|
show_progress(true),
|
|
messages(&std::cerr),
|
|
enumerate_vocab(NULL),
|
|
unknown_missing(COMPLAIN),
|
|
sentence_marker_missing(THROW_UP),
|
|
positive_log_probability(THROW_UP),
|
|
unknown_missing_logprob(-100.0),
|
|
probing_multiplier(1.5),
|
|
building_memory(1073741824ULL), // 1 GB
|
|
temporary_directory_prefix(NULL),
|
|
arpa_complain(ALL),
|
|
write_mmap(NULL),
|
|
write_method(WRITE_AFTER),
|
|
include_vocab(true),
|
|
rest_function(REST_MAX),
|
|
prob_bits(8),
|
|
backoff_bits(8),
|
|
pointer_bhiksha_bits(22),
|
|
load_method(util::POPULATE_OR_READ) {}
|
|
|
|
} // namespace ngram
|
|
} // namespace lm
|