jaclearn.nlp.tree package¶
Submodules¶
jaclearn.nlp.tree.constituency module¶
Constituency Tree.
-
class
jaclearn.nlp.tree.constituency.StepMaskSelectionMode[source]¶ Bases:
jacinle.utils.enum.JacEnumAn enumeration.
-
FIRST= 'first'¶
-
RANDOM= 'random'¶
-
jaclearn.nlp.tree.node module¶
The definition for tree Nodes.
-
class
jaclearn.nlp.tree.node.Node(vtype, etype=None)[source]¶ Bases:
object-
breadth¶ Breadth is defined as the maximum number of children of nodes in the tree.
-
depth¶ Depth is defined as the number of nodes on the maximum distance with the root of nodes + 1. (Thus a single nodes will have depth 1.)
-
is_leaf¶
-
lson¶
-
nr_children¶
-
nr_leaves¶
-
rson¶
-
size¶
-