Package nltk :: Package parse :: Module featurechart :: Class FeatureTopDownExpandRule
[hide private]
[frames] | no frames]

Class FeatureTopDownExpandRule

source code

             object --+        
                      |        
chart.AbstractChartRule --+    
                          |    
    chart.TopDownExpandRule --+
                              |
                             FeatureTopDownExpandRule
Known Subclasses:

A specialized version of the top down expand rule that operates on nonterminals whose symbols are FeatStructNonterminals. Rather tha simply comparing the nonterminals for equality, they are unified.

The top down expand rule states that:

licenses the edge:

for each grammar production B2→γ, assuming that B1 and B2 can be unified.

Instance Methods [hide private]
 
apply_iter(self, chart, grammar, edge) source code

Inherited from chart.AbstractChartRule: __str__, apply, apply_everywhere, apply_everywhere_iter

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

Class Variables [hide private]

Inherited from chart.TopDownExpandRule: NUM_EDGES

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

apply_iter(self, chart, grammar, edge)

source code 
Overrides: chart.TopDownExpandRule.apply_iter