aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/defines.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-01-17 15:59:15 +0900
committersatok <satok@google.com>2012-01-17 16:00:55 +0900
commit29dc80614bc529ca2c0b96e1a731ebb7a5433090 (patch)
tree5fcb3208f5851c913dbe945808e70e740e263f8a /native/src/defines.h
parentf611f24b32149fc928c0f31934d563ea7a053274 (diff)
downloadlatinime-29dc80614bc529ca2c0b96e1a731ebb7a5433090.tar.gz
latinime-29dc80614bc529ca2c0b96e1a731ebb7a5433090.tar.xz
latinime-29dc80614bc529ca2c0b96e1a731ebb7a5433090.zip
Prepair for advanced two words error correction
Change-Id: I4c8a21f0f6e349ddafd9b402583321a60855cfe8
Diffstat (limited to 'native/src/defines.h')
-rw-r--r--native/src/defines.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/native/src/defines.h b/native/src/defines.h
index 31175c369..d739043a4 100644
--- a/native/src/defines.h
+++ b/native/src/defines.h
@@ -117,8 +117,8 @@ static void prof_out(void) {
#define DEBUG_TRACE DEBUG_DICT_FULL
#define DEBUG_PROXIMITY_INFO false
#define DEBUG_CORRECTION false
-#define DEBUG_CORRECTION_FREQ true
-#define DEBUG_WORDS_PRIORITY_QUEUE true
+#define DEBUG_CORRECTION_FREQ false
+#define DEBUG_WORDS_PRIORITY_QUEUE false
#else // FLAG_DBG
@@ -213,6 +213,8 @@ static void prof_out(void) {
#define SUB_QUEUE_MAX_WORDS 1
#define SUB_QUEUE_MAX_COUNT 10
+#define TWO_WORDS_CORRECTION_THRESHOLD 0.22f
+
#define MAX_DEPTH_MULTIPLIER 3
// TODO: Reduce this constant if possible; check the maximum number of umlauts in the same German