Lines Matching refs:shortcuts
145 final ArrayList<WeightedString> shortcuts = new ArrayList<>();
148 shortcuts.add(new WeightedString(shortcut, UNIGRAM_FREQ));
152 (shortcutMap == null) ? null : shortcuts, false /* isNotAWord */);
266 final SparseArray<List<Integer>> bigrams, final HashMap<String, List<String>> shortcuts,
277 addUnigrams(words.size(), dict, words, shortcuts);
279 checkDictionary(dict, words, bigrams, shortcuts);
282 final long read = timeReadingAndCheckDict(file, words, bigrams, shortcuts, bufferType);
290 results.add(runReadAndWrite(sWords, sEmptyBigrams, null /* shortcuts */, bufferType,
292 results.add(runReadAndWrite(sWords, sChainBigrams, null /* shortcuts */, bufferType,
294 results.add(runReadAndWrite(sWords, sStarBigrams, null /* shortcuts */, bufferType,
297 "unigram with shortcuts"));
299 "chain with shortcuts"));
301 "star with shortcuts"));
303 null /* shortcuts */, bufferType, formatOptions,
602 final HashMap<String, List<String>> shortcuts = sShortcuts;
607 addUnigrams(words.size(), dict, words, shortcuts);
621 if (shortcuts.containsKey(word)) {
622 assertEquals(shortcuts.get(word).size(), wordProperty.mShortcutTargets.size());
623 final List<String> shortcutList = shortcuts.get(word);
638 final HashMap<String, List<String>> shortcuts = sShortcuts;
644 addUnigrams(words.size(), dict, words, shortcuts);
674 if (shortcuts.containsKey(word0)) {
675 assertEquals(shortcuts.get(word0).size(), wordProperty.mShortcutTargets.size());
676 final List<String> shortcutList = shortcuts.get(word0);