Abstract
Nodes that depend on this node, ordered by word-order; empty for leafs or if no tree-structure is in the analysis.
Readonly
idID of this node used to refer to it from other objects.
Readonly
idxZero-based index of this node reflecting its word-order position within the sentence.
Node that this node depends on. Null for the root or if no tree-structure is in the analysis.
Sentence this node belongs to. Can be null only during construction.
In-order iterator over the subtree of this node, optionally skipping some subtrees.
If true, the nodes on which [skipPredicate] returns true are included in the result.
When this predicate is true on any node, the node's subtree is not traversed (skipping only their subtrees).
Pre-order iterator over the subtree of this node, optionally skipping some subtrees.
If true, the nodes on which [skipPredicate] returns true are included in the result (skipping only their subtrees).
When this predicate is true on any node, the node's subtree is not traversed.
Indented string representation of the subtree of this node.
A function printing individual nodes.
A string used to indent each level from the previous one.
Indentation level to start with.
Abstract
to
This is an implementation class, used as a super data class of Token and TectoToken. We use the word node to refer to both tokens and tecto-tokens. In general, we assume that any tree can be non-projective (i.e. generated by context-sensitive grammar), even though the linear order of tecto-tokens has no meaning.
All nodes in the tree have to be of the same type: either all Tokens or all TectoTokens.