Softanza
StartFrançais
Softanza
The library documents itself · NLP & linguistics

stzParseTree

19 own methods · 1 forms written with extensions, listed under their method

the source: base/linguistic/stzParseTree.ring(opens in a new tab) · All classes · The area reference: NLP & linguistics

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

Examples: 0 come from the library's tests; 6 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzParseTree("S"). 13 methods have none yet. Examples run on 2026-10-03 20:23 inside the library at commit 0e72e2e2c.

Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
SetWord
construction (the parser builds bottom-up)no extension
AddChild
(no comment in the source: the name reads as a sentence) add childno extension
Label
shape
composed example
o1 = new stzParseTree("S")
? o1.Label()
#--> S
composed from the signature, run for this page
no extension
Word
(no comment in the source: the name reads as a sentence) wordno extension
IsLeaf
(no comment in the source: the name reads as a sentence) is leaf
composed example
o1 = new stzParseTree("S")
? o1.IsLeaf()
#--> 1
composed from the signature, run for this page
no extension
Children
... and what they are, as data: the label each child carries.QCSXTZZZIBWU
NumberOfChildren
(no comment in the source: the name reads as a sentence) number of children
composed example
o1 = new stzParseTree("S")
? o1.NumberOfChildren()
#--> 0
composed from the signature, run for this page
no extension
Leaves
the terminal words, left to right (the tree's "yield")no extension
Text
(no comment in the source: the name reads as a sentence) textno extension
Height
(no comment in the source: the name reads as a sentence) height
composed example
o1 = new stzParseTree("S")
? o1.Height()
#--> 1
composed from the signature, run for this page
no extension
Subtrees
navigation ----------------------------------------------------------- every subtree (self included) whose label equals pcLabel (phrase query)no extension
Phrases
the phrases of a kind, as strings (the chunker-style convenience)no extension
NounPhrases
(no comment in the source: the name reads as a sentence) noun phrasesno extension
VerbPhrases
(no comment in the source: the name reads as a sentence) verb phrasesno extension
PrepositionalPhrases
(no comment in the source: the name reads as a sentence) prepositional phrasesno extension
ToBracket
rendering ------------------------------------------------------------ Penn Treebank bracket notation (leaves as word/TAG)also written: Bracket
composed example
o1 = new stzParseTree("S")
? o1.ToBracket()
#--> /S
composed from the signature, run for this page
no extension
ToTreeString
an indented, human-readable tree
composed example
o1 = new stzParseTree("S")
? o1.ToTreeString()
#--> /S
composed from the signature, run for this page
no extension
Show
(no comment in the source: the name reads as a sentence) showno extension