From 78cdf82de832413b3e6a52a212bdf104f190ae18 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Fri, 2 Aug 2013 17:56:11 +0100 Subject: [PATCH] Log10/loge weight change for incremental. TODO: debug n-best list generation --- moses/Incremental.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moses/Incremental.cpp b/moses/Incremental.cpp index e4159063c..dffcd3e3e 100644 --- a/moses/Incremental.cpp +++ b/moses/Incremental.cpp @@ -199,7 +199,7 @@ template search::History Manager::PopulateBest(const M const LanguageModel &abstract = LanguageModel::GetFirstLM(); const float oov_weight = abstract.OOVFeatureEnabled() ? abstract.GetOOVWeight() : 0.0; const StaticData &data = StaticData::Instance(); - search::Config config(abstract.GetWeight(), data.GetCubePruningPopLimit(), search::NBestConfig(data.GetNBestSize())); + search::Config config(abstract.GetWeight() * M_LN10, data.GetCubePruningPopLimit(), search::NBestConfig(data.GetNBestSize())); search::Context context(config, model); size_t size = source_.GetSize();