nltk.nonterminals()
¶
-
nltk.
nonterminals
(symbols)[source]¶ Given a string containing a list of symbol names, return a list of
Nonterminals
constructed from those symbols.Parameters: symbols (str) – The symbol name string. This string can be delimited by either spaces or commas. Returns: A list of Nonterminals
constructed from the symbol names given insymbols
. TheNonterminals
are sorted in the same order as the symbols names.Return type: list(Nonterminal)