Merge "Use spaces instead of tabs in the combined format."

main
Jean Chalard 2012-10-31 02:33:54 -07:00 committed by Android (Google) Code Review
commit 1b67a2bd8b
1 changed files with 3 additions and 3 deletions

View File

@ -227,18 +227,18 @@ public class CombinedInputOutput {
} }
destination.write("\n"); destination.write("\n");
for (Word word : set) { for (Word word : set) {
destination.write("\t" + WORD_TAG + "=" + word.mWord + "," destination.write(" " + WORD_TAG + "=" + word.mWord + ","
+ FREQUENCY_TAG + "=" + word.mFrequency + FREQUENCY_TAG + "=" + word.mFrequency
+ (word.mIsNotAWord ? "," + NOT_A_WORD_TAG + "=true\n" : "\n")); + (word.mIsNotAWord ? "," + NOT_A_WORD_TAG + "=true\n" : "\n"));
if (null != word.mShortcutTargets) { if (null != word.mShortcutTargets) {
for (WeightedString target : word.mShortcutTargets) { for (WeightedString target : word.mShortcutTargets) {
destination.write("\t\t" + SHORTCUT_TAG + "=" + target.mWord + "," destination.write(" " + SHORTCUT_TAG + "=" + target.mWord + ","
+ FREQUENCY_TAG + "=" + target.mFrequency + "\n"); + FREQUENCY_TAG + "=" + target.mFrequency + "\n");
} }
} }
if (null != word.mBigrams) { if (null != word.mBigrams) {
for (WeightedString bigram : word.mBigrams) { for (WeightedString bigram : word.mBigrams) {
destination.write("\t\t" + BIGRAM_TAG + "=" + bigram.mWord + "," destination.write(" " + BIGRAM_TAG + "=" + bigram.mWord + ","
+ FREQUENCY_TAG + "=" + bigram.mFrequency + "\n"); + FREQUENCY_TAG + "=" + bigram.mFrequency + "\n");
} }
} }