Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java360 final Pair<String, String> bigram = new Pair<>(word0, word1); in testRandomlyAddBigramWords() local
361 bigramWords.add(bigram); in testRandomlyAddBigramWords()
365 bigramProbabilities.put(bigram, bigramProbability); in testRandomlyAddBigramWords()
369 for (final Pair<String, String> bigram : bigramWords) { in testRandomlyAddBigramWords()
370 final int bigramProbability = bigramProbabilities.get(bigram); in testRandomlyAddBigramWords()
372 isValidBigram(binaryDictionary, bigram.first, bigram.second)); in testRandomlyAddBigramWords()
374 getBigramProbability(binaryDictionary, bigram.first, bigram.second)); in testRandomlyAddBigramWords()
502 final Pair<String, String> bigram = new Pair<>(word0, word1); in testAddBigramWordsAndFlashWithGC() local
503 bigramWords.add(bigram); in testAddBigramWordsAndFlashWithGC()
507 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()
DVer2DictEncoder.java254 final WeightedString bigram = bigramIterator.next(); in writeBigrams() local
256 FusionDictionary.findWordInTree(dict.mRootNodeArray, bigram.mWord); in writeBigrams()
262 offset, bigram.getProbability(), unigramFrequencyForThisWord, bigram.mWord); in writeBigrams()
DBinaryDictDecoderEncoderTests.java667 final Pair<String, String> bigram = new Pair<>(word0, word1);
668 assertTrue(bigramSet.contains(bigram));
669 bigramSet.remove(bigram);
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.java76 for (final WeightedString bigram : bigrams) { in showWordInfo()
78 " Bigram: " + bigram.mWord + " (" + bigram.getProbability() + ")"); in showWordInfo()
/packages/inputmethods/LatinIME/native/jni/
DAndroid.bp22 "src/dictionary/structure/pt_common/bigram/bigram_list_read_write_utils.cpp",
101 "src/dictionary/structure/backward/v402/bigram/ver4_bigram_list_policy.cpp",