diff options
author | 2014-02-26 17:41:31 +0900 | |
---|---|---|
committer | 2014-02-26 17:41:31 +0900 | |
commit | 57816c7a8bac1a47913da7a503ece2b5dd7cc0fc (patch) | |
tree | fe4b62516f2229c1a8f079eba59b9fe86b4431f6 /native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp | |
parent | f818b1aa322829c6f975528bf5e63047ba5684c9 (diff) | |
download | latinime-57816c7a8bac1a47913da7a503ece2b5dd7cc0fc.tar.gz latinime-57816c7a8bac1a47913da7a503ece2b5dd7cc0fc.tar.xz latinime-57816c7a8bac1a47913da7a503ece2b5dd7cc0fc.zip |
Check header attributes for forgetting curve.
Bug: 13197276
Change-Id: Ib360010f309fd1ed3e81cf23aa10c1cfe82781a6
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.cpp | 2 |
1 files changed, 2 insertions, 0 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 3ce57d910..b8a6bbade 100644 --- a/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp +++ b/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.cpp @@ -35,6 +35,8 @@ const char *const HeaderPolicy::HAS_HISTORICAL_INFO_KEY = "HAS_HISTORICAL_INFO"; const char *const HeaderPolicy::LOCALE_KEY = "locale"; // match Java declaration const int HeaderPolicy::DEFAULT_MULTIPLE_WORDS_DEMOTION_RATE = 100; const float HeaderPolicy::MULTIPLE_WORD_COST_MULTIPLIER_SCALE = 100.0f; +const int HeaderPolicy::DEFAULT_FORGETTING_CURVE_OCCURRENCES_TO_LEVEL_UP = 4; +const int HeaderPolicy::DEFAULT_FORGETTING_CURVE_PROBABILITY_VALUES_TABLE_ID = 0; // Used for logging. Question mark is used to indicate that the key is not found. void HeaderPolicy::readHeaderValueOrQuestionMark(const char *const key, int *outValue, |