class documentation

class DependencyProduction(Production): (source)

Constructor: DependencyProduction(lhs, rhs)

View In Hierarchy

A dependency grammar production. Each production maps a single head word to an unordered list of one or more modifier words.

Method __str__ Return a verbose string representation of the DependencyProduction.

Inherited from Production:

Method __eq__ Return True if this Production is equal to other.
Method __hash__ Return a hash value for the Production.
Method __init__ Construct a new Production.
Method __len__ Return the length of the right-hand side.
Method __lt__ Undocumented
Method __ne__ Undocumented
Method __repr__ Return a concise string representation of the Production.
Method is_lexical Return True if the right-hand contain at least one terminal token.
Method is_nonlexical Return True if the right-hand side only contains Nonterminals
Method lhs Return the left-hand side of this Production.
Method rhs Return the right-hand side of this Production.
Instance Variable _lhs The left-hand side of the production.
Instance Variable _rhs The right-hand side of the production.
def __str__(self): (source) ΒΆ

Return a verbose string representation of the DependencyProduction.

Returns
strUndocumented