Sentence
Contains functionality specific to sentences in a tree.
Inherits from: Constituent
A Sentence is a top-level element of a TarsqiTree. It contains a list of
Chunks and Tokens.
Instance variables
parent - a TarsqiTree
dtrs - a list of Chunks and Tokens
position - position in the TarsqiTree parent (first sentence is 0)
eventList - a list of (eLoc, eid) tuples
The eventList variable stores (eLoc, eid) tuples of each tagged event in the sentence,
the eLoc is the location of the event inside the embedding constituent, usually a
chunk).
Public Functions
__init__(self)Initialize all instance variables to 0, None or the empty list.isSentence(self)pp(self, tree=True)Delegates to self.pretty_print().pretty_print(self, tree=True, verbose=False, indent=0)Pretty print the sentence by pretty printing all daughtersset_event_list(self)Set the value of self.eventList to the list of eLocation-eid tuples in the sentence. This is used by Slinket.