Home
last modified time | relevance | path

Searched refs:mProbabilityInfo (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWeightedString.java30 public ProbabilityInfo mProbabilityInfo; field in WeightedString
38 mProbabilityInfo = probabilityInfo; in WeightedString()
43 return mProbabilityInfo.mProbability; in getProbability()
47 mProbabilityInfo = new ProbabilityInfo(probability); in setProbability()
52 return Arrays.hashCode(new Object[] { mWord, mProbabilityInfo}); in hashCode()
60 return mWord.equals(w.mWord) && mProbabilityInfo.equals(w.mProbabilityInfo); in equals()
DWordProperty.java39 public final ProbabilityInfo mProbabilityInfo; field in WordProperty
55 mProbabilityInfo = probabilityInfo; in WordProperty()
88 mProbabilityInfo = createProbabilityInfoFromArray(probabilityInfo); in WordProperty()
133 return mProbabilityInfo.mProbability; in getProbability()
139 word.mProbabilityInfo, in computeHashCode()
170 return mProbabilityInfo.equals(w.mProbabilityInfo) in equals()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java87 ProbabilityInfo mProbabilityInfo; field in FusionDictionary.PtNode
106 mProbabilityInfo = probabilityInfo; in PtNode()
118 mProbabilityInfo = probabilityInfo; in PtNode()
137 return mProbabilityInfo != null; in isTerminal()
141 return isTerminal() ? mProbabilityInfo.mProbability : NOT_A_TERMINAL; in getProbability()
174 bigram.mProbabilityInfo = probabilityInfo; in addBigram()
207 mProbabilityInfo = ProbabilityInfo.max(mProbabilityInfo, probabilityInfo); in update()
219 existingBigram.mProbabilityInfo = ProbabilityInfo.max( in update()
220 existingBigram.mProbabilityInfo, bigram.mProbabilityInfo); in update()
400 currentPtNode.mBigrams, currentPtNode.mProbabilityInfo, in add()
[all …]
DPtNodeInfo.java29 public final ProbabilityInfo mProbabilityInfo; field in PtNodeInfo
42 mProbabilityInfo = probabilityInfo; in PtNodeInfo()
49 return mProbabilityInfo != null; in isTerminal()
DVer4DictDecoder.java86 fusionDict.add(wordProperty.mWord, wordProperty.mProbabilityInfo, in readDictionaryBinary()
98 fusionDict.setBigram(word0, bigram.mWord, bigram.mProbabilityInfo); in readDictionaryBinary()
DBinaryDictIOUtils.java117 ptNodeInfo.mOriginalAddress, ptNodeInfo.mProbabilityInfo.mProbability); in readUnigramsAndBigramsBinaryInner()
DBinaryDictDecoderUtils.java341 result = new WeightedString(builder.toString(), info.mProbabilityInfo); in getWordAtPositionWithoutParentAddress()
DBinaryDictEncoderUtils.java671 + " : " + ptNode.mProbabilityInfo.toString()); in writePlacedPtNodeArray()
DBinaryDictDecoderEncoderTests.java662 assertEquals(UNIGRAM_FREQ, wordProperty.mProbabilityInfo.mProbability);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCombinedFormatUtils.java61 builder.append(formatProbabilityInfo(wordProperty.mProbabilityInfo)); in formatWordProperty()
76 builder.append(formatProbabilityInfo(ngramProperty.mTargetWord.mProbabilityInfo)); in formatWordProperty()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java111 dict.setBigram(word, s.mWord, s.mProbabilityInfo); in readDictionaryCombined()
185 dict.setBigram(word, s.mWord, s.mProbabilityInfo); in readDictionaryCombined()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java753 assertEquals(unigramProbability, wordProperty.mProbabilityInfo.mProbability); in testGetWordProperties()
862 wordProperty.mProbabilityInfo.mProbability); in testIterateAllWords()