nltk.draw.cfg module¶
Visualization tools for CFGs.
- class nltk.draw.cfg.CFGEditor[source]¶
Bases:
object
A dialog window for creating and editing context free grammars.
CFGEditor
imposes the following restrictions:All nonterminals must be strings consisting of word characters.
All terminals must be strings consisting of word characters and space characters.
- ARROW = 'Þ'¶
- class nltk.draw.cfg.ProductionList[source]¶
Bases:
ColorizedList
- ARROW = 'Þ'¶