Home
last modified time | relevance | path

Searched refs:bigram (Results 1 – 7 of 7) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java342 final Pair<String, String> bigram = new Pair<>(word0, word1); in testRandomlyAddBigramWords() local
343 bigramWords.add(bigram); in testRandomlyAddBigramWords()
347 bigramProbabilities.put(bigram, bigramProbability); in testRandomlyAddBigramWords()
351 for (final Pair<String, String> bigram : bigramWords) { in testRandomlyAddBigramWords()
352 final int bigramProbability = bigramProbabilities.get(bigram); in testRandomlyAddBigramWords()
354 isValidBigram(binaryDictionary, bigram.first, bigram.second)); in testRandomlyAddBigramWords()
356 getBigramProbability(binaryDictionary, bigram.first, bigram.second)); in testRandomlyAddBigramWords()
480 final Pair<String, String> bigram = new Pair<>(word0, word1); in testAddBigramWordsAndFlashWithGC() local
481 bigramWords.add(bigram); in testAddBigramWordsAndFlashWithGC()
485 bigramProbabilities.put(bigram, bigramProbability); in testAddBigramWordsAndFlashWithGC()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java172 WeightedString bigram = getBigram(word); in addBigram() local
173 if (bigram != null) { in addBigram()
174 bigram.mProbabilityInfo = probabilityInfo; in addBigram()
176 bigram = new WeightedString(word, probabilityInfo); in addBigram()
177 mBigrams.add(bigram); in addBigram()
190 WeightedString bigram = mBigrams.get(i); in getBigram() local
191 if (bigram.mWord.equals(word)) { in getBigram()
192 return bigram; in getBigram()
214 final WeightedString bigram = bigrams.get(i); in update() local
215 final WeightedString existingBigram = getBigram(bigram.mWord); in update()
[all …]
DVer4DictDecoder.java97 for (final WeightedString bigram : wordProperty.getBigrams()) { in readDictionaryBinary()
98 fusionDict.setBigram(word0, bigram.mWord, bigram.mProbabilityInfo); in readDictionaryBinary()
DBinaryDictEncoderUtils.java338 for (WeightedString bigram : ptNode.mBigrams) { in computeActualPtNodeArraySize()
341 FusionDictionary.findWordInTree(dict.mRootNodeArray, bigram.mWord)); in computeActualPtNodeArraySize()
/packages/inputmethods/LatinIME/dictionaries/
Dsample.combined25 # Each word may also have any number of bigram lines starting with a
26 # `bigram' entry containing the following word whose frequency should
27 # override the unigram frequency when following the word this bigram is
32 bigram=wordlist,f=243
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DInfo.java96 for (final WeightedString bigram : bigrams) { in showWordInfo()
98 " Bigram: " + bigram.mWord + " (" + bigram.getProbability() + ")"); in showWordInfo()
/packages/inputmethods/LatinIME/native/jni/
DNativeFileList.mk29 bigram/bigram_list_read_write_utils.cpp \
120 $(addprefix dictionary/structure/backward/v402/bigram/, \