Package nltk_lite :: Package draw :: Module chart :: Class EdgeRule
[hide private]
[frames] | no frames]

Class EdgeRule

source code

object --+
         |
        EdgeRule
Known Subclasses:
BottomUpEdgeRule, BottomUpInitEdgeRule, FundamentalEdgeRule, PseudoEarleyEdgeRule, TopDownExpandEdgeRule, TopDownMatchEdgeRule

To create an edge rule, make an empty base class that uses EdgeRule as the first base class, and the basic rule as the second base class. (Order matters!)

Instance Methods [hide private]
 
__init__(self, edge)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
apply_iter(self, chart, grammar, *edges) source code
 
__str__(self)
str(x)
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, edge)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)