Home
last modified time | relevance | path

Searched refs:word0 (Results 1 – 3 of 3) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java183 private static void addBigramWords(final BinaryDictionary binaryDictionary, final String word0, in addBigramWords() argument
185 binaryDictionary.addNgramEntry(new NgramContext(new WordInfo(word0)), word1, probability, in addBigramWords()
189 private static void addTrigramEntry(final BinaryDictionary binaryDictionary, final String word0, in addTrigramEntry() argument
192 new NgramContext(new WordInfo(word1), new WordInfo(word0)), word2, in addTrigramEntry()
197 final String word0, final String word1) { in isValidBigram() argument
198 return binaryDictionary.isValidNgram(new NgramContext(new WordInfo(word0)), word1); in isValidBigram()
202 final String word0, final String word1) { in getBigramProbability() argument
203 return binaryDictionary.getNgramProbability(new NgramContext(new WordInfo(word0)), word1); in getBigramProbability()
207 final String word0, final String word1, final String word2) { in getTrigramProbability() argument
209 new NgramContext(new WordInfo(word1), new WordInfo(word0)), word2); in getTrigramProbability()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer4DictDecoder.java96 final String word0 = wordProperty.mWord; in readDictionaryBinary() local
98 fusionDict.setBigram(word0, bigram.mWord, bigram.mProbabilityInfo); in readDictionaryBinary()
DFusionDictionary.java304 public void setBigram(final String word0, final String word1, in setBigram() argument
306 PtNode ptNode0 = findWordInTree(mRootNodeArray, word0); in setBigram()
315 ptNode0 = findWordInTree(mRootNodeArray, word0); in setBigram()
319 throw new RuntimeException("First word of bigram not found " + word0); in setBigram()