class_docstr: Reader for corpora that consist of parenthesis-delineated parse trees,
  like those found in the "combined" section of the Penn Treebank,
  e.g. "(S (NP (DT the) (JJ little) (NN dog)) (VP (VBD barked)))".
docstr: :param root: The root directory for this corpus.
  :param fileids: A list or regexp specifying the fileids in this corpus.
  :param comment_char: The character which can appear at the start of
      a line to indicate that the rest of the line is a comment.
  :param detect_blocks: The method that is used to find blocks
      in the corpus; can be 'unindented_paren' (every unindented
      parenthesis starts a new parse) or 'sexpr' (brackets are
      matched).
  :param tagset: The name of the tagset used by this corpus, to be used
      for normalizing or converting the POS tags returned by the
      ``tagged_...()`` methods.
docstr_tok: [":","param","root",":","The","root","directory","for","this","corpus",".",":","param","fileids",":","A","list","or","regexp","specifying","the","fileids","in","this","corpus",".",":","param","comment_char",":","The","character","which","can","appear","at","the","start","of","a","line","to","indicate","that","the","rest","of","the","line","is","a","comment",".",":","param","detect_blocks",":","The","method","that","is","used","to","find","blocks","in","the","corpus",";","can","be","'unindented_paren","'","(","every","unindented","parenthesis","starts","a","new","parse",")","or","'sexpr","'","(","brackets","are","matched",")",".",":","param","tagset",":","The","name","of","the","tagset","used","by","this","corpus",",","to","be","used","for","normalizing","or","converting","the","POS","tags","returned","by","the","``","tagged_","...","(",")","``","methods","."]
code: def __init__(
      self,
      root,
      fileids,
      comment_char=None,
      detect_blocks="unindented_paren",
      encoding="utf8",
      tagset=None,
  ):
      """
      :param root: The root directory for this corpus.
      :param fileids: A list or regexp specifying the fileids in this corpus.
      :param comment_char: The character which can appear at the start of
          a line to indicate that the rest of the line is a comment.
      :param detect_blocks: The method that is used to find blocks
          in the corpus; can be 'unindented_paren' (every unindented
          parenthesis starts a new parse) or 'sexpr' (brackets are
          matched).
      :param tagset: The name of the tagset used by this corpus, to be used
          for normalizing or converting the POS tags returned by the
          ``tagged_...()`` methods.
      """
      SyntaxCorpusReader.__init__(self, root, fileids, encoding)
      self._comment_char = comment_char
      self._detect_blocks = detect_blocks
      self._tagset = tagset
  
imports: import sys
  from nltk.corpus.reader.api import *
  from nltk.corpus.reader.util import *
  from nltk.tag import map_tag
  from nltk.tree import Tree
label_desc: Use image node_id 1 to create a new BracketParseCorpusReader object from inherited base classes: SyntaxCorpusReader with example: obj = BracketParseCorpusReader(root, fileids, comment_char, detect_blocks, encoding, tagset)