OSDN Git Service

PinyinIME - Fix a bug in score compensation.
authorGenqing Wu <wugenqing@android.com>
Wed, 29 Apr 2009 06:41:43 +0000 (14:41 +0800)
committerGenqing Wu <wugenqing@android.com>
Mon, 4 May 2009 03:28:02 +0000 (11:28 +0800)
commit7ebaf2381c91649d700097491af171c7e486bf6f
treea80a134ed0865a5d4c2828ed283834eb0c3579ca
parent8fb7e16cb2c271cb378c2d395594955369e2fb47
PinyinIME - Fix a bug in score compensation.

After user adds new words to user dictionary, the compensation score for system
dictionary was wrongly computed. The numerator should be kSysDictTotalFreq, not
total_freq_none_sys_. This commit fixes this bug.
jni/share/ngram.cpp