aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/defines.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-05-23 19:55:27 +0900
committersatok <satok@google.com>2012-05-23 20:40:59 +0900
commita0ac31fcaa01c21592a6e7af243c14dada65cf3e (patch)
tree25823d1dd38b8e62726f3dea32aacbc7d16d5f32 /native/jni/src/defines.h
parent0b6b6ee542c0e143868538acdf5b161013c0b1de (diff)
downloadlatinime-a0ac31fcaa01c21592a6e7af243c14dada65cf3e.tar.gz
latinime-a0ac31fcaa01c21592a6e7af243c14dada65cf3e.tar.xz
latinime-a0ac31fcaa01c21592a6e7af243c14dada65cf3e.zip
Fix the issue on multiple words suggestion
Bug: 6509844 Change-Id: I823074a2b29befc3e60c63699ab4dc7719105c63
Diffstat (limited to 'native/jni/src/defines.h')
-rw-r--r--native/jni/src/defines.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h
index dfc5238a0..19f843446 100644
--- a/native/jni/src/defines.h
+++ b/native/jni/src/defines.h
@@ -228,6 +228,8 @@ static inline void prof_out(void) {
#define TWO_WORDS_CORRECTION_WITH_OTHER_ERROR_THRESHOLD 0.35
#define START_TWO_WORDS_CORRECTION_THRESHOLD 0.185
+/* heuristic... This should be changed if we change the unit of the frequency. */
+#define SUPPRESS_SHORT_MULTIPLE_WORDS_THRESHOLD_FREQ (MAX_FREQ * 58 / 100)
#define MAX_DEPTH_MULTIPLIER 3