nltk.DependencyProduction
¶
-
class
nltk.
DependencyProduction
(lhs, rhs)[source]¶ A dependency grammar production. Each production maps a single head word to an unordered list of one or more modifier words.
Methods¶
__init__ (lhs, rhs) |
Construct a new Production . |
is_lexical () |
Return True if the right-hand contain at least one terminal token. |
is_nonlexical () |
Return True if the right-hand side only contains Nonterminals |
lhs () |
Return the left-hand side of this Production . |
rhs () |
Return the right-hand side of this Production . |
unicode_repr () |
Return a concise string representation of the Production . |