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

  /packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/
offdevice_intermediate_dict.cpp 37 const auto &ptNode = *ptNodeIt;
38 const CodePointArrayView ptNodeCodePoints = ptNode->getPtNodeCodePoints();
50 ptNode->getChildrenPtNodeArray());
58 if (ptNode->getWordProperty()) {
63 std::make_shared<OffdeviceIntermediateDictPtNode>(wordProperty, *ptNode));
68 // Create and Add new parent ptNode for the common part.
75 // Add new child for the existing ptNode.
78 ptNodeCodePoints.skip(i), *ptNode));
96 for (const auto ptNode : ptNodeArray->getPtNodeList()) {
97 const CodePointArrayView ptNodeCodePoints = ptNode->getPtNodeCodePoints()
    [all...]
  /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.getProbability());
75 if (ptNode.getIsNotAWord()) {
78 if (ptNode.getIsPossiblyOffensive()) {
81 final ArrayList<WeightedString> shortcutTargets = ptNode.getShortcutTargets();
92 final ArrayList<WeightedString> bigrams = ptNode.getBigrams();
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
BinaryDictEncoderUtils.java 21 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
70 * Compute the binary size of the character array in a PtNode
75 * @param ptNode the PtNode
78 private static int getPtNodeCharactersSize(final PtNode ptNode,
80 return getPtNodeCharactersSize(ptNode.mChars, codePointToOneByteCodeMap);
84 * Compute the binary size of the PtNode count for a node array.
86 * @return the size of the PtNode count, either 1 or 2 bytes.
93 * Compute the maximum size of a PtNode, assuming 3-byte addresses for everything
    [all...]
FusionDictionary.java 47 ArrayList<PtNode> mData;
62 public PtNodeArray(ArrayList<PtNode> data) {
69 * PtNode is a group of characters, with probability information, shortcut targets, bigrams,
72 * This is the central class of the in-memory representation. A PtNode is what can
74 * same time. A PtNode essentially represents one or several characters in the middle
76 * In this in-memory representation, whether the PtNode is a terminal or not is represented
77 * by mProbabilityInfo. The PtNode is a terminal when the mProbabilityInfo is not null and the
78 * PtNode is not a terminal when the mProbabilityInfo is null. A terminal may have non-null
82 public static final class PtNode {
98 int mCachedSize; // The size, in bytes, of this PtNode
    [all...]

Completed in 140 milliseconds