aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/defines.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-08-19 22:05:59 +0900
committersatok <satok@google.com>2011-08-23 23:40:29 +0900
commit10266c09ec83db497c8f22dd9dc4cb45c1cf36e9 (patch)
tree881bffa7e689a76e1bef891f8a90e126764bd935 /native/src/defines.h
parentd6834c8125031b3ba0c1f6671debb15a4232ff77 (diff)
downloadlatinime-10266c09ec83db497c8f22dd9dc4cb45c1cf36e9.tar.gz
latinime-10266c09ec83db497c8f22dd9dc4cb45c1cf36e9.tar.xz
latinime-10266c09ec83db497c8f22dd9dc4cb45c1cf36e9.zip
Combine the skipped and transposed correction
bug: 4170136 Change-Id: I7b50b40478abf27f51ec5e001815ff4882f3e5e5
Diffstat (limited to 'native/src/defines.h')
-rw-r--r--native/src/defines.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/native/src/defines.h b/native/src/defines.h
index a29fb7e5b..009d0ad3d 100644
--- a/native/src/defines.h
+++ b/native/src/defines.h
@@ -95,10 +95,12 @@ static void prof_out(void) {
#define DEBUG_DICT true
#define DEBUG_DICT_FULL false
#define DEBUG_EDIT_DISTANCE false
-#define DEBUG_SHOW_FOUND_WORD DEBUG_DICT_FULL
+#define DEBUG_SHOW_FOUND_WORD false
#define DEBUG_NODE DEBUG_DICT_FULL
#define DEBUG_TRACE DEBUG_DICT_FULL
#define DEBUG_PROXIMITY_INFO true
+#define DEBUG_CORRECTION false
+#define DEBUG_CORRECTION_FREQ true
#define DUMP_WORD(word, length) do { dumpWord(word, length); } while(0)
@@ -121,6 +123,8 @@ static void dumpWord(const unsigned short* word, const int length) {
#define DEBUG_NODE false
#define DEBUG_TRACE false
#define DEBUG_PROXIMITY_INFO false
+#define DEBUG_CORRECTION false
+#define DEBUG_CORRECTION_FREQ false
#define DUMP_WORD(word, length)
@@ -178,7 +182,9 @@ static void dumpWord(const unsigned short* word, const int length) {
#define WORDS_WITH_PROXIMITY_CHARACTER_DEMOTION_RATE 90
#define WORDS_WITH_MATCH_SKIP_PROMOTION_RATE 105
#define WORDS_WITH_JUST_ONE_CORRECTION_PROMOTION_RATE 160
-#define CORRECTION_COUNT_RATE_DEMOTION_RATE_BASE 42
+#define CORRECTION_COUNT_RATE_DEMOTION_RATE_BASE 45
+#define INPUT_EXCEEDS_OUTPUT_DEMOTION_RATE 70
+#define FIRST_CHAR_DIFFERENT_DEMOTION_RATE 96
// This should 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.