nltk.Nonterminal.__init__

Nonterminal.__init__(symbol)[source]

Construct a new non-terminal from the given symbol.

Parameters:symbol (any) – The node value corresponding to this Nonterminal. This value must be immutable and hashable.