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

  /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...]
BinaryDictIOUtils.java 542 // TODO: Consolidate this code with the code that computes the size of the bigram list
    [all...]
  /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...]
Info.java 61 System.out.println("Bigram count : " + bigramCount);
95 for (final WeightedString bigram : bigrams) {
96 System.out.println(" Bigram: " + bigram.mWord + " (" + bigram.mFrequency + ")");
CombinedInputOutput.java 46 private static final String BIGRAM_TAG = "bigram";
240 for (WeightedString bigram : word.mBigrams) {
241 destination.write(" " + BIGRAM_TAG + "=" + bigram.mWord + ","
242 + FREQUENCY_TAG + "=" + bigram.mFrequency + "\n");
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
UserHistoryDictIOUtilsTests.java 92 for (final String bigram : expectedBigrams) {
93 assertNotNull(group.getBigram(bigram));
229 // add new bigram

Completed in 350 milliseconds