Home
last modified time | relevance | path

Searched refs:ProbabilityInfo (Results 1 – 11 of 11) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DProbabilityInfo.java25 public final class ProbabilityInfo { class
35 public static ProbabilityInfo max(final ProbabilityInfo probabilityInfo1, in max()
36 final ProbabilityInfo probabilityInfo2) { in max()
47 public ProbabilityInfo(final int probability) { in ProbabilityInfo() method in ProbabilityInfo
51 public ProbabilityInfo(final int probability, final int timestamp, final int level, in ProbabilityInfo() method in ProbabilityInfo
79 if (!(o instanceof ProbabilityInfo)) return false; in equals()
80 final ProbabilityInfo p = (ProbabilityInfo)o; in equals()
DWeightedString.java30 public ProbabilityInfo mProbabilityInfo;
33 this(word, new ProbabilityInfo(probability)); in WeightedString()
36 public WeightedString(final String word, final ProbabilityInfo probabilityInfo) { in WeightedString()
47 mProbabilityInfo = new ProbabilityInfo(probability); in setProbability()
DWordProperty.java39 public final ProbabilityInfo mProbabilityInfo;
51 public WordProperty(final String word, final ProbabilityInfo probabilityInfo, in WordProperty()
71 private static ProbabilityInfo createProbabilityInfoFromArray(final int[] probabilityInfo) { in createProbabilityInfoFromArray()
72 return new ProbabilityInfo( in createProbabilityInfoFromArray()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java23 import com.android.inputmethod.latin.makedict.ProbabilityInfo;
99 ProbabilityInfo probabilityInfo = new ProbabilityInfo(0); in readDictionaryCombined()
127 probabilityInfo = new ProbabilityInfo(Integer.parseInt(params[1]), in readDictionaryCombined()
138 probabilityInfo = new ProbabilityInfo(probabilityInfo.mProbability, in readDictionaryCombined()
172 ProbabilityInfo bigramProbabilityInfo = new ProbabilityInfo(0); in readDictionaryCombined()
179 bigramProbabilityInfo = new ProbabilityInfo(Integer.parseInt(params[1]), in readDictionaryCombined()
188 bigramProbabilityInfo = new ProbabilityInfo( in readDictionaryCombined()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderFlattenTreeTests.java36 dict.add("foo", new ProbabilityInfo(1), null, false /* isNotAWord */, in testFlattenNodes()
38 dict.add("fta", new ProbabilityInfo(1), null, false /* isNotAWord */, in testFlattenNodes()
40 dict.add("ftb", new ProbabilityInfo(1), null, false /* isNotAWord */, in testFlattenNodes()
42 dict.add("bar", new ProbabilityInfo(1), null, false /* isNotAWord */, in testFlattenNodes()
44 dict.add("fool", new ProbabilityInfo(1), null, false /* isNotAWord */, in testFlattenNodes()
DFusionDictionaryTest.java105 dict.add(sWords.get(i), new ProbabilityInfo(180), null, false, in testFusion()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java87 ProbabilityInfo mProbabilityInfo;
103 final ProbabilityInfo probabilityInfo, final boolean isNotAWord, in PtNode()
115 final ProbabilityInfo probabilityInfo, final boolean isNotAWord, in PtNode()
168 public void addBigram(final String word, final ProbabilityInfo probabilityInfo) { in addBigram()
204 void update(final ProbabilityInfo probabilityInfo, in update()
207 mProbabilityInfo = ProbabilityInfo.max(mProbabilityInfo, probabilityInfo); in update()
219 existingBigram.mProbabilityInfo = ProbabilityInfo.max( in update()
274 public void add(final String word, final ProbabilityInfo probabilityInfo, in add()
305 final ProbabilityInfo probabilityInfo) { in setBigram()
310 add(getCodePoints(word1), new ProbabilityInfo(0), false /* isNotAWord */, in setBigram()
[all …]
DPtNodeInfo.java29 public final ProbabilityInfo mProbabilityInfo;
35 final int[] characters, final ProbabilityInfo probabilityInfo, in PtNodeInfo()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtilsTests.java34 import com.android.inputmethod.latin.makedict.ProbabilityInfo;
88 dict.add("foo", new ProbabilityInfo(TEST_FREQ), null, false /* isNotAWord */, in testGetRawDictWorks()
90 dict.add("fta", new ProbabilityInfo(1), null, false /* isNotAWord */, in testGetRawDictWorks()
92 dict.add("ftb", new ProbabilityInfo(1), null, false /* isNotAWord */, in testGetRawDictWorks()
94 dict.add("bar", new ProbabilityInfo(1), null, false /* isNotAWord */, in testGetRawDictWorks()
96 dict.add("fool", new ProbabilityInfo(1), null, false /* isNotAWord */, in testGetRawDictWorks()
174 dict.add(word, new ProbabilityInfo(TEST_FREQ), null /* shortcuts */, in runTestHeaderReaderProcessorWithOneSpec()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCombinedFormatUtils.java21 import com.android.inputmethod.latin.makedict.ProbabilityInfo;
91 public static String formatProbabilityInfo(final ProbabilityInfo probabilityInfo) { in formatProbabilityInfo()
/packages/inputmethods/LatinIME/java/
Dproguard.flags23 -keep class com.android.inputmethod.latin.makedict.ProbabilityInfo