Log10/loge weight change for incremental. TODO: debug n-best list generation

This commit is contained in:
Kenneth Heafield 2013-08-02 17:56:11 +01:00
parent f234aa203f
commit 78cdf82de8

View File

@ -199,7 +199,7 @@ template <class Model, class Best> 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<Model> context(config, model);
size_t size = source_.GetSize();