Searched refs:word1 (Results 1 – 4 of 4) sorted by relevance
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 198 final String word1, final int probability) { in addBigramWords() argument 199 binaryDictionary.addNgramEntry(new NgramContext(new WordInfo(word0)), word1, probability, in addBigramWords() 204 final String word1, final String word2, final int probability) { in addTrigramEntry() argument 206 new NgramContext(new WordInfo(word1), new WordInfo(word0)), word2, in addTrigramEntry() 211 final String word0, final String word1) { in isValidBigram() argument 212 return binaryDictionary.isValidNgram(new NgramContext(new WordInfo(word0)), word1); in isValidBigram() 216 final String word0, final String word1) { in getBigramProbability() argument 217 return binaryDictionary.getNgramProbability(new NgramContext(new WordInfo(word0)), word1); in getBigramProbability() 221 final String word0, final String word1, final String word2) { in getTrigramProbability() argument 223 new NgramContext(new WordInfo(word1), new WordInfo(word0)), word2); in getTrigramProbability() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderEncoderTests.java | 376 final String word1 = expectedWords.get(expectedBigrams.keyAt(i)); in checkWordMap() local 378 if (expBigrams.get(word1) == null) { in checkWordMap() 379 expBigrams.put(word1, new HashSet<String>()); in checkWordMap() 381 expBigrams.get(word1).add(expectedWords.get(w2)); in checkWordMap() 387 final String word1 = resultWords.get(entry.getKey()); in checkWordMap() local 391 if (actBigrams.get(word1) == null) { in checkWordMap() 392 actBigrams.put(word1, new HashSet<String>()); in checkWordMap() 394 actBigrams.get(word1).add(word2); in checkWordMap() 651 final String word1 = words.get(word1Index); 652 bigramSet.add(new Pair<>(words.get(i), word1)); [all …]
|
D | Ver4DictEncoder.java | 92 for (final WeightedString word1 : word0Property.getBigrams()) { in writeDictionary() 95 if (!binaryDict.addNgramEntry(ngramContext, word1.mWord, in writeDictionary() 96 word1.getProbability(), 0 /* timestamp */)) { in writeDictionary() 98 + ngramContext + " -> " + word1.mWord); in writeDictionary()
|
D | FusionDictionary.java | 304 public void setBigram(final String word0, final String word1, in setBigram() argument 308 final PtNode ptNode1 = findWordInTree(mRootNodeArray, word1); in setBigram() 310 add(getCodePoints(word1), new ProbabilityInfo(0), false /* isNotAWord */, in setBigram() 317 ptNode0.addBigram(word1, probabilityInfo); in setBigram()
|