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

Class CompleterRule

source code

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

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

licenses the edge:

given that the chart contains:


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

Instance Methods [hide private]
 
apply_iter(self, chart, grammar, right_edge) 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, right_edge)

source code 
Overrides: AbstractChartRule.apply_iter

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: AbstractChartRule.__str__