aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/defines.h
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-05-17 03:15:40 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-17 03:15:40 -0700
commitbc77adefbb0305c5ec0e41ab01e3a085c47c21eb (patch)
tree27b2977bfb52cdfcb160cb03ee4fb96b5954b5e8 /native/jni/src/defines.h
parent5748a7ce86631eaff417828984d25eec7dd63c08 (diff)
parent9416c814035c65f26ae50c6555de8be84db9860d (diff)
downloadlatinime-bc77adefbb0305c5ec0e41ab01e3a085c47c21eb.tar.gz
latinime-bc77adefbb0305c5ec0e41ab01e3a085c47c21eb.tar.xz
latinime-bc77adefbb0305c5ec0e41ab01e3a085c47c21eb.zip
Merge "Return the bigram frequency if available." into jb-dev
Diffstat (limited to 'native/jni/src/defines.h')
-rw-r--r--native/jni/src/defines.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h
index c6ad66abe..dfc5238a0 100644
--- a/native/jni/src/defines.h
+++ b/native/jni/src/defines.h
@@ -207,6 +207,7 @@ static inline void prof_out(void) {
#define NEUTRAL_SCORE_SQUARED_RADIUS 8.0f
#define HALF_SCORE_SQUARED_RADIUS 32.0f
#define MAX_FREQ 255
+#define MAX_BIGRAM_FREQ 15
// This must be greater than or equal to MAX_WORD_LENGTH defined in BinaryDictionary.java
// This is only used for the size of array. Not to be used in c functions.
@@ -225,8 +226,8 @@ static inline void prof_out(void) {
#define MULTIPLE_WORDS_DEMOTION_RATE 80
#define MIN_INPUT_LENGTH_FOR_THREE_OR_MORE_WORDS_CORRECTION 6
-#define TWO_WORDS_CORRECTION_WITH_OTHER_ERROR_THRESHOLD 0.39
-#define START_TWO_WORDS_CORRECTION_THRESHOLD 0.22
+#define TWO_WORDS_CORRECTION_WITH_OTHER_ERROR_THRESHOLD 0.35
+#define START_TWO_WORDS_CORRECTION_THRESHOLD 0.185
#define MAX_DEPTH_MULTIPLIER 3