diff options
author | 2014-06-24 06:18:11 +0000 | |
---|---|---|
committer | 2014-06-24 06:18:11 +0000 | |
commit | c1ded3dd79f08d94789ea7191342c6fc83df021c (patch) | |
tree | 9752f80961ebc343a277246925255f6c6e988415 /java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java | |
parent | 03404d559c9b6bbdd043f1ad316b5ae343bc42d1 (diff) | |
parent | 702e153fbc28d54aeb2ded40b9f3f31c1fd154e9 (diff) | |
download | latinime-c1ded3dd79f08d94789ea7191342c6fc83df021c.tar.gz latinime-c1ded3dd79f08d94789ea7191342c6fc83df021c.tar.xz latinime-c1ded3dd79f08d94789ea7191342c6fc83df021c.zip |
am 702e153f: Merge "Support migration/dump of Beginning-of-Sentence entries."
* commit '702e153fbc28d54aeb2ded40b9f3f31c1fd154e9':
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"); } |