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

Class Domain

source code

object --+    
         |    
  Sentence --+
             |
            Domain

Manages a domain operation

Provides: Domain(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 query tree
source code
 
__getitem__(self, p_index) source code
 
getList(self)
Return the domain in list form
source code
 
getHTML(self)
Return html for this domain
source code
 
getHorizontalHTML(self, p_parentSpan=1)
Return a horizontal html table
source code
 
getText(self)
Return text for this domain
source code
 
getConditions(self)
Return a list of conditions for each combination (cell)
source code
 
getMaxWidth(self)
Get max width (chars) for display purposes
source code
 
getSpan(self)
Get the span of this domain (number of elements)
source code
 
getDepth(self)
Get the depth of this domain (always one!)
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 query tree

Overrides: Sentence.__init__

getList(self)

source code 

Return the domain in list form

Overrides: Sentence.getList

getHTML(self)

source code 

Return html for this domain

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 domain

Overrides: Sentence.getText

getConditions(self)

source code 

Return a list of conditions for each combination (cell)

Overrides: Sentence.getConditions

getMaxWidth(self)

source code 

Get max width (chars) for display purposes

Overrides: Sentence.getMaxWidth

getSpan(self)

source code 

Get the span of this domain (number of elements)

Overrides: Sentence.getSpan

getDepth(self)

source code 

Get the depth of this domain (always one!)

Overrides: Sentence.getDepth