HomeSort by relevance Sort by last modified time
    Searched defs:bigram (Results 1 - 3 of 3) sorted by null

  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
XmlDictInputOutput.java 53 private static final String BIGRAM_TAG = "bigram";
160 // In this version of the XML file, the bigram frequency is given as an int 0..XML_MAX
162 // In memory and in the binary dictionary the bigram frequency is 0..MEMORY_MAX
187 WeightedString bigram = new WeightedString(dst, freq / XML_TO_MEMORY_RATIO); local
190 bigramList.add(bigram);
206 * SAX handler for a bigram XML file.
326 for (final WeightedString bigram : bigramList) {
327 if (!dict.hasWord(bigram.mWord)) continue;
328 dict.setBigram(firstWord, bigram.mWord, bigram.mFrequency)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
FusionDictionary.java 63 * This represents an "attribute", that is either a bigram or a shortcut.
180 * Adds a word to the bigram list. Updates the frequency if the word already
187 WeightedString bigram = getBigram(word); local
188 if (bigram != null) {
189 bigram.mFrequency = frequency;
191 bigram = new WeightedString(word, frequency);
192 mBigrams.add(bigram);
215 * Gets the bigram for the given word.
223 WeightedString bigram = mBigrams.get(i); local
224 if (bigram.mWord.equals(word))
265 final WeightedString bigram = bigrams.get(i); local
    [all...]
BinaryDictInputOutput.java 502 // extreme overhead at bigram lookup time (it would make the search function O(n) instead
573 for (WeightedString bigram : group.mBigrams) {
576 final int addressOfBigram = findAddressOfWord(dict, bigram.mWord);
799 * Makes the flag value for a bigram.
1016 final WeightedString bigram = bigramIterator.next(); local
    [all...]

Completed in 520 milliseconds