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

  /packages/inputmethods/LatinIME/tools/makedict/src/com/android/inputmethod/latin/makedict/
XmlDictInputOutput.java 47 private static final String BIGRAM_TAG = "bigram";
66 private static final int BIGRAM = 4;
154 // In this version of the XML file, the bigram frequency is given as an int 0..XML_MAX
156 // In memory and in the binary dictionary the bigram frequency is 0..MEMORY_MAX
181 WeightedString bigram = new WeightedString(dst, freq / XML_TO_MEMORY_RATIO); local
184 bigramList.add(bigram);
196 * SAX handler for a bigram XML file.
268 for (final WeightedString bigram : bigramList) {
269 if (!dict.hasWord(bigram.mWord)) continue;
270 dict.setBigram(firstWord, bigram.mWord, bigram.mFrequency)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
FusionDictionary.java 61 * This represents an "attribute", that is either a bigram or a shortcut.
143 * Adds a word to the bigram list. Updates the frequency if the word already
150 WeightedString bigram = getBigram(word); local
151 if (bigram != null) {
152 bigram.mFrequency = frequency;
154 bigram = new WeightedString(word, frequency);
155 mBigrams.add(bigram);
178 * Gets the bigram for the given word.
186 WeightedString bigram = mBigrams.get(i); local
187 if (bigram.mWord.equals(word))
227 final WeightedString bigram = bigrams.get(i); local
    [all...]
BinaryDictInputOutput.java 96 * bigram address list is:
496 // extreme overhead at bigram lookup time (it would make the search function O(n) instead
556 for (WeightedString bigram : group.mBigrams) {
559 final int addressOfBigram = findAddressOfWord(dict, bigram.mWord);
727 throw new RuntimeException("0-sized bigram list must be null");
735 * Makes the flag value for a bigram.
738 * @param offset the offset of the bigram.
739 * @param bigramFrequency the frequency of the bigram, 0..255.
741 * @param word the second bigram, for debugging purposes
907 final WeightedString bigram = bigramIterator.next(); local
    [all...]

Completed in 394 milliseconds