nltk.classify.DecisionTreeClassifier.pretty_format

DecisionTreeClassifier.pretty_format(width=70, prefix=u'', depth=4)[source]

Return a string containing a pretty-printed version of this decision tree. Each line in this string corresponds to a single decision tree node or leaf, and indentation is used to display the structure of the decision tree.