class documentation
class DependencyProduction(Production): (source)
Constructor: DependencyProduction(lhs, rhs)
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 |
Return True if the right-hand contain at least one terminal token. |
Method | is |
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. |
overrides
nltk.grammar.Production.__str__
Return a verbose string representation of the DependencyProduction.
Returns | |
str | Undocumented |