nltk.Production.__init__¶
-
Production.
__init__
(lhs, rhs)[source]¶ 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
.
- lhs (Nonterminal) – The left-hand side of the new