nltk.DependencyProduction.__init__

DependencyProduction.__init__(lhs, rhs)

Construct a new Production.

Parameters:
  • lhs (Nonterminal) – The left-hand side of the new Production.
  • rhs (sequence(Nonterminal and terminal)) – The right-hand side of the new Production.