Package nltk_lite :: Package contrib :: Module paradigm :: Class Hierarchy
[hide private]
[frames] | no frames]

Class Hierarchy

source code

object --+    
         |    
  Sentence --+
             |
            Hierarchy

Manages a hierarchy operation

Provides: Hierarchy(paradigm,tree)

Instance Methods [hide private]
 
__init__(self, p_paradigm, p_tree)
p_paradigm is the given paradigm (attributes and data) p_tree is the tree representation of this part of the query (Tree)
source code
 
getList(self)
Return the hierarchy in list form
source code
 
getHTML(self)
Return a html table for this hierarchy
source code
 
getHorizontalHTML(self, p_parentSpan=1)
Return a horizontal html table
source code
 
getText(self)
Return text for this hierarchy
source code
 
getConditions(self)
Return a list of conditions for each combination (cell)
source code
 
getMaxWidth(self)
Return the maximum width (in chars) this hierarchy will take up
source code
 
getDepth(self)
Get the depth of this hierarchy
source code
 
getSpan(self)
Get the span (for HTML tables) of this hierarchy
source code

Inherited from Sentence: getType

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, p_paradigm, p_tree)
(Constructor)

source code 

p_paradigm is the given paradigm (attributes and data) p_tree is the tree representation of this part of the query (Tree)

Overrides: Sentence.__init__

getList(self)

source code 

Return the hierarchy in list form

Overrides: Sentence.getList

getHTML(self)

source code 

Return a html table for this hierarchy

Overrides: Sentence.getHTML

getHorizontalHTML(self, p_parentSpan=1)

source code 

Return a horizontal html table

Overrides: Sentence.getHorizontalHTML

getText(self)

source code 

Return text for this hierarchy

Overrides: Sentence.getText

getConditions(self)

source code 

Return a list of conditions for each combination (cell)

Overrides: Sentence.getConditions

getMaxWidth(self)

source code 

Return the maximum width (in chars) this hierarchy will take up

Overrides: Sentence.getMaxWidth

getDepth(self)

source code 

Get the depth of this hierarchy

Overrides: Sentence.getDepth

getSpan(self)

source code 

Get the span (for HTML tables) of this hierarchy

Overrides: Sentence.getSpan