Home
last modified time | relevance | path

Searched refs:word1 (Results 1 – 5 of 5) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java198 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/
DBinaryDictDecoderEncoderTests.java376 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 …]
DVer4DictEncoder.java92 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()
DFusionDictionary.java304 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()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/
DEncoderUtil.java525 String word1 = encodeB(prefix, part1, usedCharacters, charset, in encodeB() local
532 return word1 + " " + word2; in encodeB()
553 String word1 = encodeQ(prefix, part1, usage, usedCharacters, in encodeQ() local
560 return word1 + " " + word2; in encodeQ()