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

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
WeightedString.java 28 public final class WeightedString {
32 public WeightedString(final String word, final int probability) {
36 public WeightedString(final String word, final ProbabilityInfo probabilityInfo) {
58 if (!(o instanceof WeightedString)) return false;
59 final WeightedString w = (WeightedString)o;
NgramProperty.java 22 public final WeightedString mTargetWord;
25 public NgramProperty(final WeightedString targetWord, final NgramContext ngramContext) {
WordProperty.java 52 @Nullable final ArrayList<WeightedString> bigrams,
61 for (final WeightedString bigramTarget : bigrams) {
99 final WeightedString ngramTarget = new WeightedString(ngramTargetString,
119 public ArrayList<WeightedString> getBigrams() {
123 final ArrayList<WeightedString> bigrams = new ArrayList<>();
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
PtNodeInfo.java 31 public final ArrayList<WeightedString> mShortcutTargets;
36 final int childrenAddress, final ArrayList<WeightedString> shortcutTargets,
FusionDictionary.java 85 ArrayList<WeightedString> mBigrams;
102 public PtNode(final int[] chars, final ArrayList<WeightedString> bigrams,
114 public PtNode(final int[] chars, final ArrayList<WeightedString> bigrams,
152 public ArrayList<WeightedString> getBigrams() {
155 final ArrayList<WeightedString> copyOfBigrams = new ArrayList<>(mBigrams);
172 WeightedString bigram = getBigram(word);
176 bigram = new WeightedString(word, probabilityInfo);
185 public WeightedString getBigram(final String word) {
190 WeightedString bigram = mBigrams.get(i);
205 final ArrayList<WeightedString> bigrams
    [all...]
BinaryDictDecoderUtils.java 317 /* package for tests */ static WeightedString getWordAtPosition(final DictDecoder dictDecoder,
319 final WeightedString result;
327 private static WeightedString getWordAtPositionWithoutParentAddress(
333 WeightedString result = null;
341 result = new WeightedString(builder.toString(), info.mProbabilityInfo);
Ver4DictDecoder.java 97 for (final WeightedString bigram : wordProperty.getBigrams()) {
BinaryDictEncoderUtils.java 338 for (WeightedString bigram : ptNode.mBigrams) {
    [all...]
  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
Info.java 22 import com.android.inputmethod.latin.makedict.WeightedString;
53 for (WeightedString shortcutTarget : wordProperty.mShortcutTargets) {
81 final ArrayList<WeightedString> shortcutTargets = ptNode.getShortcutTargets();
85 for (final WeightedString shortcutTarget : shortcutTargets) {
92 final ArrayList<WeightedString> bigrams = ptNode.getBigrams();
96 for (final WeightedString bigram : bigrams) {
CombinedInputOutput.java 24 import com.android.inputmethod.latin.makedict.WeightedString;
102 ArrayList<WeightedString> bigrams = new ArrayList<>();
103 ArrayList<WeightedString> shortcuts = new ArrayList<>();
111 for (WeightedString s : bigrams) {
166 shortcuts.add(new WeightedString(shortcut, shortcutFreq));
196 bigrams.add(new WeightedString(secondWordOfBigram, bigramProbabilityInfo));
205 for (WeightedString s : bigrams) {
Diff.java 21 import com.android.inputmethod.latin.makedict.WeightedString;
160 final String type, final ArrayList<WeightedString> list0,
161 final ArrayList<WeightedString> list1) {
164 for (final WeightedString attribute0 : list0) {
172 for (final WeightedString attribute0 : list0) {
173 // The following tests with #equals(). The WeightedString#equals() method returns
179 for (final WeightedString attribute1 : list1) {
201 for (final WeightedString attribute1 : list1) {
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryTests.java 29 import com.android.inputmethod.latin.makedict.WeightedString;
    [all...]

Completed in 144 milliseconds