nltk.draw.cfg module¶
Visualization tools for CFGs.
- class nltk.draw.cfg.ProductionList[source]¶
Bases:
ColorizedList- ARROW = 'Þ'¶
- class nltk.draw.cfg.CFGEditor[source]¶
Bases:
objectA dialog window for creating and editing context free grammars.
CFGEditorimposes 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 = 'Þ'¶