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

  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
Info.java 91 final ArrayList<WeightedString> bigrams = group.getBigrams(); local
92 if (null == bigrams || bigrams.isEmpty()) {
93 System.out.println(" No bigrams");
95 for (final WeightedString bigram : bigrams) {
CombinedInputOutput.java 127 ArrayList<WeightedString> bigrams = new ArrayList<WeightedString>(); local
135 for (WeightedString s : bigrams) {
140 if (!bigrams.isEmpty()) bigrams = new ArrayList<WeightedString>();
185 bigrams.add(new WeightedString(secondWordOfBigram, bigramFreq));
193 for (WeightedString s : bigrams) {
DictionaryMaker.java 97 throw new RuntimeException("Separate bigrams/shortcut files are only supported"
98 + " with XML input (other formats include bigrams and shortcuts already)");
126 + "[-s <unigrams.xml> [-b <bigrams.xml>] [-c <shortcuts_and_whitelist.xml>] "
133 + " Source can be an XML file, with an optional XML bigrams file, or a\n"
319 * @param bigramXmlFilename the name of the bigram XML file. Pass null if there are no bigrams.
332 final FileInputStream bigrams = null == bigramXmlFilename ? null : local
334 return XmlDictInputOutput.readDictionaryXml(unigrams, shortcuts, bigrams);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
UserHistoryDictIOUtils.java 118 final BigramDictionaryInterface dict, final UserHistoryDictionaryBigramList bigrams,
120 final FusionDictionary fusionDict = constructFusionDictionary(dict, bigrams);
136 final BigramDictionaryInterface dict, final UserHistoryDictionaryBigramList bigrams) {
141 for (final String word1 : bigrams.keySet()) {
142 final HashMap<String, Byte> word1Bigrams = bigrams.getBigrams(word1);
166 bigrams.updateBigram(word1, word2, (byte)freq);
182 final Map<Integer, ArrayList<PendingAttribute>> bigrams = CollectionUtils.newTreeMap(); local
185 bigrams);
193 addWordsFromWordMap(unigrams, frequencies, bigrams, dict);
197 * Adds all unigrams and bigrams in maps to OnAddWordListener
    [all...]
ExpandableDictionary.java 332 LinkedList<NextWord> bigrams = firstWord.mNGrams;
334 if (bigrams == null || bigrams.size() == 0) {
337 for (NextWord nw : bigrams) {
347 return bigrams.remove(bigramNode);
363 LinkedList<NextWord> bigrams = firstWord.mNGrams;
364 if (bigrams == null || bigrams.size() == 0) {
367 for (NextWord nw : bigrams) {
544 * Adds bigrams to the in-memory trie structure that is being used to retrieve any wor
564 LinkedList<NextWord> bigrams = firstWord.mNGrams; local
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
BinaryDictIOUtils.java 71 final Map<Integer, ArrayList<PendingAttribute>> bigrams,
116 if (info.mBigrams != null) bigrams.put(info.mOriginalAddress, info.mBigrams);
145 * Reads unigrams and bigrams from the binary file.
151 * @param bigrams the map to store the address as a key and the list of address as a value.
157 final Map<Integer, ArrayList<PendingAttribute>> bigrams) throws IOException,
161 readUnigramsAndBigramsBinaryInner(buffer, header.mHeaderSize, words, frequencies, bigrams,
385 throw new RuntimeException("Too many bigrams in a group.");
674 * @param bigrams
686 final ArrayList<PendingAttribute> bigrams, final OutputStream destination,
694 shortcutTargets, bigrams);
725 final ArrayList<PendingAttribute> bigrams = new ArrayList<PendingAttribute>(); local
    [all...]
BinaryDictInputOutput.java 751 * @param hasBigrams whether the group has bigrams.
801 * @param more whether there are more bigrams after this one
1319 ArrayList<PendingAttribute> bigrams = null; local
1519 ArrayList<WeightedString> bigrams = null; local
    [all...]

Completed in 82 milliseconds