diff options
author | Peng Wu <alexepico@gmail.com> | 2010-11-01 17:08:05 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-11-01 17:08:05 +0800 |
commit | c622cd3d4aa44de57cb8e692dc5dba5832febccb (patch) | |
tree | 824304544ee926a5e90e2aa9b09e39c32a242d25 | |
parent | 7eb0282165e8f051fe3c1bb79f33705febb68d24 (diff) | |
download | libpinyin-c622cd3d4aa44de57cb8e692dc5dba5832febccb.tar.gz libpinyin-c622cd3d4aa44de57cb8e692dc5dba5832febccb.tar.xz libpinyin-c622cd3d4aa44de57cb8e692dc5dba5832febccb.zip |
Revert "strength reduce"
-rw-r--r-- | src/lookup/pinyin_lookup.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); |