Searched refs:bigram (Results 1 – 4 of 4) sorted by relevance
/packages/inputmethods/LatinIME/tools/dicttool/src/android/inputmethod/latin/dicttool/ |
D | XmlDictInputOutput.java | 188 WeightedString bigram = new WeightedString(dst, freq / XML_TO_MEMORY_RATIO); in startElement() local 191 bigramList.add(bigram); in startElement() 298 for (final WeightedString bigram : bigramList) { in readDictionaryXml() 299 if (!dict.hasWord(bigram.mWord)) continue; in readDictionaryXml() 300 dict.setBigram(firstWord, bigram.mWord, bigram.mFrequency); in readDictionaryXml() 362 for (WeightedString bigram : word.mBigrams) { in writeDictionaryXml() 364 + bigram.mFrequency + "\">" + bigram.mWord + "</" + BIGRAM_TAG + ">\n"); in writeDictionaryXml()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | FusionDictionary.java | 157 WeightedString bigram = getBigram(word); in addBigram() local 158 if (bigram != null) { in addBigram() 159 bigram.mFrequency = frequency; in addBigram() 161 bigram = new WeightedString(word, frequency); in addBigram() 162 mBigrams.add(bigram); in addBigram() 193 WeightedString bigram = mBigrams.get(i); in getBigram() local 194 if (bigram.mWord.equals(word)) { in getBigram() 195 return bigram; in getBigram() 235 final WeightedString bigram = bigrams.get(i); in update() local 236 final WeightedString existingBigram = getBigram(bigram.mWord); in update() [all …]
|
D | BinaryDictInputOutput.java | 553 for (WeightedString bigram : group.mBigrams) { in computeActualNodeSize() 556 final int addressOfBigram = findAddressOfWord(dict, bigram.mWord); in computeActualNodeSize() 987 final WeightedString bigram = bigramIterator.next(); in writePlacedNode() local 989 FusionDictionary.findWordInTree(dict.mRoot, bigram.mWord); in writePlacedNode() 995 bigram.mFrequency, unigramFrequencyForThisWord, bigram.mWord); in writePlacedNode() 1483 for (PendingAttribute bigram : info.mBigrams) { in readNode() 1485 buffer, headerSize, bigram.mAddress, options); in readNode() 1486 bigrams.add(new WeightedString(word, bigram.mFrequency)); in readNode() 1648 for (final WeightedString bigram : w.mBigrams) { in readDictionaryBinary() 1649 newDict.setBigram(w.mWord, bigram.mWord, bigram.mFrequency); in readDictionaryBinary()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | UserHistoryDictIOUtilsTests.java | 91 for (final String bigram : expectedBigrams) { in checkWordInFusionDict() 92 assertNotNull(group.getBigram(bigram)); in checkWordInFusionDict()
|