Home
last modified time | relevance | path

Searched refs:probabilityInfo (Results 1 – 7 of 7) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java103 final ProbabilityInfo probabilityInfo, final boolean isNotAWord, in PtNode() argument
106 mProbabilityInfo = probabilityInfo; in PtNode()
107 mTerminalId = probabilityInfo == null ? NOT_A_TERMINAL : probabilityInfo.mProbability; in PtNode()
115 final ProbabilityInfo probabilityInfo, final boolean isNotAWord, in PtNode() argument
118 mProbabilityInfo = probabilityInfo; in PtNode()
168 public void addBigram(final String word, final ProbabilityInfo probabilityInfo) { in addBigram() argument
174 bigram.mProbabilityInfo = probabilityInfo; in addBigram()
176 bigram = new WeightedString(word, probabilityInfo); in addBigram()
204 void update(final ProbabilityInfo probabilityInfo, in update() argument
207 mProbabilityInfo = ProbabilityInfo.max(mProbabilityInfo, probabilityInfo); in update()
[all …]
DPtNodeInfo.java35 final int[] characters, final ProbabilityInfo probabilityInfo, in PtNodeInfo() argument
42 mProbabilityInfo = probabilityInfo; in PtNodeInfo()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWordProperty.java51 public WordProperty(final String word, final ProbabilityInfo probabilityInfo, in WordProperty() argument
55 mProbabilityInfo = probabilityInfo; in WordProperty()
71 private static ProbabilityInfo createProbabilityInfoFromArray(final int[] probabilityInfo) { in createProbabilityInfoFromArray() argument
73 probabilityInfo[BinaryDictionary.FORMAT_WORD_PROPERTY_PROBABILITY_INDEX], in createProbabilityInfoFromArray()
74 probabilityInfo[BinaryDictionary.FORMAT_WORD_PROPERTY_TIMESTAMP_INDEX], in createProbabilityInfoFromArray()
75 probabilityInfo[BinaryDictionary.FORMAT_WORD_PROPERTY_LEVEL_INDEX], in createProbabilityInfoFromArray()
76 probabilityInfo[BinaryDictionary.FORMAT_WORD_PROPERTY_COUNT_INDEX]); in createProbabilityInfoFromArray()
83 final boolean isBeginningOfSentence, final int[] probabilityInfo, in WordProperty() argument
88 mProbabilityInfo = createProbabilityInfoFromArray(probabilityInfo); in WordProperty()
DWeightedString.java36 public WeightedString(final String word, final ProbabilityInfo probabilityInfo) { in WeightedString() argument
38 mProbabilityInfo = probabilityInfo; in WeightedString()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java99 ProbabilityInfo probabilityInfo = new ProbabilityInfo(0); in readDictionaryCombined() local
109 dict.add(word, probabilityInfo, isNotAWord, isPossiblyOffensive); in readDictionaryCombined()
126 probabilityInfo = new ProbabilityInfo(Integer.parseInt(params[1]), in readDictionaryCombined()
127 probabilityInfo.mTimestamp, probabilityInfo.mLevel, in readDictionaryCombined()
128 probabilityInfo.mCount); in readDictionaryCombined()
137 probabilityInfo = new ProbabilityInfo(probabilityInfo.mProbability, in readDictionaryCombined()
183 dict.add(word, probabilityInfo, isNotAWord, isPossiblyOffensive); in readDictionaryCombined()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCombinedFormatUtils.java91 public static String formatProbabilityInfo(final ProbabilityInfo probabilityInfo) { in formatProbabilityInfo() argument
93 builder.append(PROBABILITY_TAG + "=" + probabilityInfo.mProbability); in formatProbabilityInfo()
94 if (probabilityInfo.hasHistoricalInfo()) { in formatProbabilityInfo()
97 builder.append(probabilityInfo.mTimestamp); in formatProbabilityInfo()
99 builder.append(probabilityInfo.mLevel); in formatProbabilityInfo()
101 builder.append(probabilityInfo.mCount); in formatProbabilityInfo()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp43 int probabilityInfo[] = {unigramProperty.getProbability(), historicalInfo.getTimestamp(), in outputWordProperty() local
45 env->SetIntArrayRegion(outProbabilityInfo, 0 /* start */, NELEMS(probabilityInfo), in outputWordProperty()
46 probabilityInfo); in outputWordProperty()