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

  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
Info.java 21 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
68 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word);
69 if (null == ptNode) {
74 System.out.println(" Freq: " + ptNode.getFrequency());
75 if (ptNode.getIsNotAWord()) {
78 if (ptNode.getIsBlacklistEntry()) {
81 final ArrayList<WeightedString> shortcutTargets = ptNode.getShortcutTargets();
91 final ArrayList<WeightedString> bigrams = ptNode.getBigrams();
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
UserHistoryDictIOUtilsTests.java 28 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
92 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word);
93 assertNotNull(ptNode);
94 assertTrue(ptNode.isTerminal());
97 assertNotNull(ptNode.getBigram(bigram));
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
FusionDictionary.java 48 ArrayList<PtNode> mData;
61 mData = new ArrayList<PtNode>();
63 public PtNodeArray(ArrayList<PtNode> data) {
96 * PtNode is a group of characters, with a frequency, shortcut targets, bigrams, and children
99 * This is the central class of the in-memory representation. A PtNode is what can
101 * same time. A PtNode essentially represents one or several characters in the middle
103 * In this in-memory representation, whether the PtNode is a terminal or not is represented
108 public static final class PtNode {
124 int mCachedSize; // The size, in bytes, of this PtNode.
125 int mCachedAddressBeforeUpdate; // The address of this PtNode (before update
    [all...]
BinaryDictEncoderUtils.java 21 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
69 * Compute the binary size of the character array in a PtNode
74 * @param ptNode the PtNode
77 private static int getPtNodeCharactersSize(final PtNode ptNode) {
78 return getPtNodeCharactersSize(ptNode.mChars);
82 * Compute the binary size of the PtNode count for a node array.
84 * @return the size of the PtNode count, either 1 or 2 bytes.
121 * Compute the maximum size of a PtNode, assuming 3-byte addresses for everything
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
BinaryDictDecoderEncoderTests.java 30 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
213 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word);
214 assertNotNull(ptNode);
221 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray,
223 assertNotNull(words.get(w1) + "," + words.get(w2), ptNode.getBigram(words.get(w2)));
231 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray,
235 ptNode.getShortcut(word))
    [all...]

Completed in 91 milliseconds