diff options
author | 2014-06-24 05:41:08 +0000 | |
---|---|---|
committer | 2014-06-24 01:59:00 +0000 | |
commit | 702e153fbc28d54aeb2ded40b9f3f31c1fd154e9 (patch) | |
tree | 9752f80961ebc343a277246925255f6c6e988415 /java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java | |
parent | d700e5970049deee7f61aeb573ef42d7caa6ab0f (diff) | |
parent | 88fa47a27d45f6460971d0d223aa558e121b3478 (diff) | |
download | latinime-702e153fbc28d54aeb2ded40b9f3f31c1fd154e9.tar.gz latinime-702e153fbc28d54aeb2ded40b9f3f31c1fd154e9.tar.xz latinime-702e153fbc28d54aeb2ded40b9f3f31c1fd154e9.zip |
Merge "Support migration/dump of Beginning-of-Sentence entries."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java b/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java index c66007537..34f59e8bc 100644 --- a/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java +++ b/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java @@ -31,6 +31,7 @@ public class CombinedFormatUtils { public static final String HISTORICAL_INFO_TAG = "historicalInfo"; public static final String HISTORICAL_INFO_SEPARATOR = ":"; public static final String WORD_TAG = "word"; + public static final String BEGINNING_OF_SENTENCE_TAG = "beginning_of_sentence"; public static final String NOT_A_WORD_TAG = "not_a_word"; public static final String BLACKLISTED_TAG = "blacklisted"; @@ -56,6 +57,9 @@ public class CombinedFormatUtils { builder.append(" " + WORD_TAG + "=" + wordProperty.mWord); builder.append(","); builder.append(formatProbabilityInfo(wordProperty.mProbabilityInfo)); + if (wordProperty.mIsBeginningOfSentence) { + builder.append("," + BEGINNING_OF_SENTENCE_TAG + "=true"); + } if (wordProperty.mIsNotAWord) { builder.append("," + NOT_A_WORD_TAG + "=true"); } |