Searched refs:word0 (Results 1 – 4 of 4) sorted by relevance
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 197 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/ |
D | Ver4DictDecoder.java | 96 final String word0 = wordProperty.mWord; in readDictionaryBinary() local 98 fusionDict.setBigram(word0, bigram.mWord, bigram.mProbabilityInfo); in readDictionaryBinary()
|
D | FusionDictionary.java | 304 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()
|
D | BinaryDictDecoderEncoderTests.java | 661 final String word0 = wordProperty.mWord; 663 wordSet.remove(word0); 667 final Pair<String, String> bigram = new Pair<>(word0, word1);
|