Package nltk_lite :: Package parse :: Module pchart :: Class ProbabilisticTreeEdge
[hide private]
[frames] | no frames]

Class ProbabilisticTreeEdge

source code

 object --+        
          |        
chart.EdgeI --+    
              |    
 chart.TreeEdge --+
                  |
                 ProbabilisticTreeEdge

Instance Methods [hide private]
 
__init__(self, prob, *args, **kwargs)
Construct a new TreeEdge.
source code
 
prob(self) source code
 
__cmp__(self, other) source code

Inherited from chart.TreeEdge: __hash__, __repr__, __str__, dot, end, is_complete, is_incomplete, length, lhs, next, rhs, span, start

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__

Static Methods [hide private]
TreeEdge
from_production(production, index, p)
Returns: A new TreeEdge formed from the given production.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, prob, *args, **kwargs)
(Constructor)

source code 

Construct a new TreeEdge.

Overrides: chart.TreeEdge.__init__
(inherited documentation)

__cmp__(self, other)
(Comparison operator)

source code 
Overrides: chart.TreeEdge.__cmp__

from_production(production, index, p)
Static Method

source code 
Returns: TreeEdge
A new TreeEdge formed from the given production. The new edge's left-hand side and right-hand side will be taken from production; its span will be (index, index); and its dot position will be 0.
Overrides: chart.TreeEdge.from_production
(inherited documentation)