Trees | Indices | Help |
---|
|
DOP1 implementation. Andreas van Cranenburgh <andreas@unstable.nl> TODOs: unicode support (replace str and repr calls)
|
|||
GoodmanDOP |
|
|||
|
|||
|
|||
list of Production s
|
|
||
|
|
|||
__package__ = None
|
|
produce a flattened fold using cartesian product as operator >>> list(cartpi( ( (1,2), (3,4), (5,6) ) ) ) [(1, 3, 5), (2, 3, 5), (1, 4, 5), (2, 4, 5), (1, 3, 6), (2, 3, 6), (1, 4, 6), (2, 4, 6)] |
Generate the productions that correspond to the non-terminal nodes of the tree. For each subtree of the form (P: C1 C2 ... Cn) this produces a production of the form P -> C1 C2 ... Cn.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Jun 16 13:03:58 2010 | http://epydoc.sourceforge.net |