nltk.ImmutableProbabilisticTree.pformat¶
-
ImmutableProbabilisticTree.
pformat
(margin=70, indent=0, nodesep=u'', parens=u'()', quotes=False)¶ Returns: A pretty-printed string representation of this tree.
Return type: str
Parameters: - margin (int) – The right margin at which to do line-wrapping.
- indent (int) – The indentation level at which printing begins. This number is used to decide how far to indent subsequent lines.
- nodesep – A string that is used to separate the node
from the children. E.g., the default value
':'
gives trees like(S: (NP: I) (VP: (V: saw) (NP: it)))
.