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

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
FusionDictionary.java 60 * This represents an "attribute", that is either a bigram or a shortcut.
150 * Adds a word to the bigram list. Updates the frequency if the word already
157 WeightedString bigram = getBigram(word); local
158 if (bigram != null) {
159 bigram.mFrequency = frequency;
161 bigram = new WeightedString(word, frequency);
162 mBigrams.add(bigram);
185 * Gets the bigram for the given word.
193 WeightedString bigram = mBigrams.get(i); local
194 if (bigram.mWord.equals(word))
235 final WeightedString bigram = bigrams.get(i); local
    [all...]
BinaryDictInputOutput.java 482 // extreme overhead at bigram lookup time (it would make the search function O(n) instead
553 for (WeightedString bigram : group.mBigrams) {
556 final int addressOfBigram = findAddressOfWord(dict, bigram.mWord);
758 throw new RuntimeException("0-sized bigram list must be null");
772 * Makes the flag value for a bigram.
775 * @param offset the offset of the bigram.
776 * @param bigramFrequency the frequency of the bigram, 0..255.
778 * @param word the second bigram, for debugging purposes
799 MakedictLog.e("Unigram freq is superior to bigram freq for \"" + word
800 + "\". Bigram freq is " + bigramFrequency + ", unigram freq for
987 final WeightedString bigram = bigramIterator.next(); local
    [all...]
  /packages/inputmethods/LatinIME/tools/dicttool/src/android/inputmethod/latin/dicttool/
XmlDictInputOutput.java 49 private static final String BIGRAM_TAG = "bigram";
69 private static final int BIGRAM = 4;
161 // In this version of the XML file, the bigram frequency is given as an int 0..XML_MAX
163 // In memory and in the binary dictionary the bigram frequency is 0..MEMORY_MAX
188 WeightedString bigram = new WeightedString(dst, freq / XML_TO_MEMORY_RATIO); local
191 bigramList.add(bigram);
207 * SAX handler for a bigram XML file.
298 for (final WeightedString bigram : bigramList) {
299 if (!dict.hasWord(bigram.mWord)) continue;
300 dict.setBigram(firstWord, bigram.mWord, bigram.mFrequency)
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
UserHistoryDictIOUtilsTests.java 91 for (final String bigram : expectedBigrams) {
92 assertNotNull(group.getBigram(bigram));
228 // add new bigram

Completed in 391 milliseconds