HomeSort by relevance Sort by last modified time
    Searched full:bigram (Results 1 - 25 of 26) sorted by null

1 2

  /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...]
DictionaryMaker.java 81 throw new RuntimeException("Cannot specify a binary input and a separate bigram "
237 * Read a dictionary from a unigram XML file, and optionally a bigram XML file.
241 * @param bigramXmlFilename the name of the bigram XML file. Pass null if there are no bigrams.
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
UtilsTests.java 35 * Test for getting previous word (for bigram suggestions)
38 // If one of the following cases breaks, the bigram suggestions won't work.
57 * Test for getting the word before the cursor (for bigram)
InputLogicTests.java 216 // Here we fake picking a word through bigram prediction. This test is taking
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
PendingAttribute.java 22 * An attribute is either a bigram or a shortcut.
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...]
  /packages/inputmethods/LatinIME/native/jni/src/
bigram_dictionary.cpp 47 AKLOGI("Bigram: Found word = %s, freq = %d :", s, frequency);
61 AKLOGI("Bigram: InsertAt -> %d maxBigrams: %d", insertAt, mMaxBigrams);
77 AKLOGI("Bigram: Added word at %d", insertAt);
126 // codesSize == 0 means we are trying to find bigram predictions.
144 // Returns a pointer to the start of the bigram list.
221 // TODO: Move functions related to bigram to here
bigram_dictionary.h 49 // TODO: Re-implement proximity correction for bigram correction
unigram_dictionary.h 51 // Flag for bigram presence
54 // Attribute (bigram/shortcut) related flags:
binary_format.h 392 * what is stored as the "bigram address" in each bigram)
538 // 0 for the bigram frequency represents the middle of the 16th step from the top,
unigram_dictionary.cpp 169 // bigramMap contains the association <bigram address> -> <bigram frequency>
492 // TODO: pass the bigram list for substring suggestion
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
UserHistoryDictionaryBigramList.java 54 Log.d(TAG, "--- add bigram: " + word1 + ", " + word2 + ", " + fcValue);
74 Log.d(TAG, "--- update bigram: " + word1 + ", " + word2 + ", " + fcValue);
Dictionary.java 32 public static final int BIGRAM = 1;
49 * @param dataType tells type of this data, either UNIGRAM or BIGRAM
70 * Searches for pairs in the bigram dictionary that matches the previous word and all the
UserHistoryForgettingCurveUtils.java 56 /** This constructor is called when the user history bigram dictionary is being restored. */
185 * Check wheather we should save the bigram to the SQL DB or not
ContactsBinaryDictionary.java 58 * Whether to use "firstname lastname" in bigram predictions.
126 // TODO: Add firstname/lastname bigram rules for other languages.
Suggest.java 62 // User history dictionary for the bigram map, internal to LatinIME
210 protected void addBigramToSuggestions(SuggestedWordInfo bigram) {
211 mSuggestions.add(bigram);
392 * Adds all bigram predictions for prevWord. Also checks the lower case version of prevWord if
441 if (dataType == Dictionary.BIGRAM) {
UserHistoryDictionary.java 55 * When it hits maximum bigram pair, it will delete until you are left with
183 // Do not insert a word as a bigram of itself
472 } else { // bigram
545 // Update an existing bigram entry in mBigramList too in order to
ExpandableBinaryDictionary.java 71 * answer unigram and bigram queries.
187 * Sets a word bigram in the fusion dictionary. Call updateBinaryDictionary when all changes are
BinaryDictionary.java 135 mDicTypeId, Dictionary.BIGRAM);
ExpandableDictionary.java 35 // Bigram frequency is a fixed point number with 1 meaning 1.2 and 255 meaning 1.8.
517 * @param frequency frequency for this bigram
519 * @return returns the final bigram frequency
655 freq, mDicTypeId, Dictionary.BIGRAM);
    [all...]
SettingsValues.java 245 // TODO: remove this method. Bigram suggestion is always true.
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
SuggestionSpanUtils.java 136 // TODO: We should avoid adding suggestion span candidates that came from the bigram
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
SuggestionsView.java 323 // TODO: Need to revisit this logic with bigram suggestions
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
AndroidSpellCheckerService.java 505 // TODO: support bigram
    [all...]

Completed in 598 milliseconds

1 2