Package parser_course :: Package small_parsers :: Module very_simple_cky_parser :: Class BURule
[hide private]
[frames] | no frames]

Class BURule

source code

object --+        
         |        
     tuple --+    
             |    
    BURuleBase --+
                 |
                BURule

BURules are pairs of next daughters and mother cats. We index our CNF rules by first dtrs, so we dont store them >>> rule = BURule('v','vp') >>> rule BURule('v','vp') >>> print rule.next_dtr, rule.mother_cat v vp

Instance Methods [hide private]

Inherited from BURuleBase: __repr__

Inherited from tuple: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __rmul__

Inherited from object: __delattr__, __init__, __reduce__, __reduce_ex__, __setattr__, __str__

Static Methods [hide private]

Inherited from BURuleBase: __new__

Properties [hide private]

Inherited from BURuleBase: mother_cat, next_dtr

Inherited from object: __class__