From c622cd3d4aa44de57cb8e692dc5dba5832febccb Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 1 Nov 2010 17:08:05 +0800 Subject: Revert "strength reduce" --- src/lookup/pinyin_lookup.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/lookup/pinyin_lookup.cpp b/src/lookup/pinyin_lookup.cpp index 2d2e770..37611d8 100644 --- a/src/lookup/pinyin_lookup.cpp +++ b/src/lookup/pinyin_lookup.cpp @@ -347,8 +347,7 @@ bool PinyinLookup::bigram_gen_next_step(int nstep, lookup_value_t * cur_step, ph lookup_value_t next_step; next_step.m_handles[0] = cur_step->m_handles[1]; next_step.m_handles[1] = token; next_step.m_poss = cur_step->m_poss + - log(bigram_lambda * bigram_poss + unigram_lambda * unigram_poss) + - log( pinyin_poss); + log(( bigram_lambda * bigram_poss + unigram_lambda * unigram_poss) *pinyin_poss); next_step.m_last_step = nstep; return save_next_step(nstep + phrase_length, cur_step, &next_step); -- cgit