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

Class FeatureFundamentalRule

source code

             object --+        
                      |        
chart.AbstractChartRule --+    
                          |    
      chart.FundamentalRule --+
                              |
                             FeatureFundamentalRule

A specialized version of the fundamental rule that operates on nonterminals whose symbols are FeatStructNonterminals. Rather tha simply comparing the nonterminals for equality, they are unified. Variable bindings from these unifications are collected and stored in the chart using a FeatureTreeEdge. When a complete edge is generated, these bindings are applied to all nonterminals in the edge.

The fundamental rule states that:

licenses the edge:

assuming that B1 and B2 can be unified to generate B3.

Instance Methods [hide private]
 
apply_iter(self, chart, grammar, left_edge, right_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.FundamentalRule: NUM_EDGES

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

apply_iter(self, chart, grammar, left_edge, right_edge)

source code 
Overrides: chart.FundamentalRule.apply_iter