Package nltk :: Package parse :: Module chart :: Class SingleEdgeFundamentalRule
[hide private]
[frames] | no frames]

Class SingleEdgeFundamentalRule

source code

       object --+    
                |    
AbstractChartRule --+
                    |
                   SingleEdgeFundamentalRule
Known Subclasses:

A rule that joins a given edge with adjacent edges in the chart, to form combined edges. In particular, this rule specifies that either of the edges:

licenses the edge:

if the other edge is already in the chart.


Note: This is basically FundamentalRule, with one edge is left unspecified.

Instance Methods [hide private]
 
apply_iter(self, chart, grammar, edge1) source code
 
__str__(self)
str(x)
source code

Inherited from AbstractChartRule: apply, apply_everywhere, apply_everywhere_iter

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

Class Variables [hide private]
  NUM_EDGES = 1
  _fundamental_rule = FundamentalRule()
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

apply_iter(self, chart, grammar, edge1)

source code 
Overrides: AbstractChartRule.apply_iter

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: AbstractChartRule.__str__