aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-11-20 15:55:44 +0900
committerKeisuke Kuroyanagi <ksk@google.com>2014-11-25 19:07:13 +0900
commit60021bbdc25b7cda864fb3d1bf47d4f0e977e7f9 (patch)
tree7a7316da0ef2b7f989eef5d4ee2a249369a6f045 /native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp
parent78212a6d3de2c1fdaa394c58a16cbdee3ad5d046 (diff)
downloadlatinime-60021bbdc25b7cda864fb3d1bf47d4f0e977e7f9.tar.gz
latinime-60021bbdc25b7cda864fb3d1bf47d4f0e977e7f9.tar.xz
latinime-60021bbdc25b7cda864fb3d1bf47d4f0e977e7f9.zip
Enable Quadgram for personalized dicts.
Before: Total words: 1134659, Success Num: 944709, Success Percentage: 83.259% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1258, Bad Failure Percentage: 0.111% Failures, with auto-correction (F-C): 28013, F-C Percentage: 2.469% Max Keystrokes: 6072844, Min Keystrokes: 3347332, Keystroke Saving Percentage:44.880% After: Total words: 1134665, Success Num: 945026, Success Percentage: 83.287% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1271, Bad Failure Percentage: 0.112% Failures, with auto-correction (F-C): 27756, F-C Percentage: 2.446% Max Keystrokes: 6072850, Min Keystrokes: 3290996, Keystroke Saving Percentage:45.808% Change-Id: I16af52a3e9c371b95fd6f0741f45ee6b2443bea6
Diffstat (limited to 'native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp')
-rw-r--r--native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp b/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp
index a2a0f11b4..c93f31017 100644
--- a/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp
+++ b/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp
@@ -31,10 +31,11 @@ const char *const HeaderPolicy::IS_DECAYING_DICT_KEY = "USES_FORGETTING_CURVE";
const char *const HeaderPolicy::DATE_KEY = "date";
const char *const HeaderPolicy::LAST_DECAYED_TIME_KEY = "LAST_DECAYED_TIME";
const char *const HeaderPolicy::NGRAM_COUNT_KEYS[] =
- {"UNIGRAM_COUNT", "BIGRAM_COUNT", "TRIGRAM_COUNT"};
+ {"UNIGRAM_COUNT", "BIGRAM_COUNT", "TRIGRAM_COUNT", "QUADGRAM_COUNT"};
const char *const HeaderPolicy::MAX_NGRAM_COUNT_KEYS[] =
- {"MAX_UNIGRAM_ENTRY_COUNT", "MAX_BIGRAM_ENTRY_COUNT", "MAX_TRIGRAM_ENTRY_COUNT"};
-const int HeaderPolicy::DEFAULT_MAX_NGRAM_COUNTS[] = {10000, 30000, 30000};
+ {"MAX_UNIGRAM_ENTRY_COUNT", "MAX_BIGRAM_ENTRY_COUNT", "MAX_TRIGRAM_ENTRY_COUNT",
+ "MAX_QUADGRAM_ENTRY_COUNT"};
+const int HeaderPolicy::DEFAULT_MAX_NGRAM_COUNTS[] = {10000, 30000, 30000, 30000};
const char *const HeaderPolicy::EXTENDED_REGION_SIZE_KEY = "EXTENDED_REGION_SIZE";
// Historical info is information that is needed to support decaying such as timestamp, level and
// count.