Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java197 private static void addBigramWords(final BinaryDictionary binaryDictionary, final String word0, in addBigramWords() argument
199 binaryDictionary.addNgramEntry(new NgramContext(new WordInfo(word0)), word1, probability, in addBigramWords()
203 private static void addTrigramEntry(final BinaryDictionary binaryDictionary, final String word0, 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/
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()
DBinaryDictDecoderEncoderTests.java661 final String word0 = wordProperty.mWord;
663 wordSet.remove(word0);
667 final Pair<String, String> bigram = new Pair<>(word0, word1);