class_docstr: Reader for chunked (and optionally tagged) corpora.  Paragraphs
  are split using a block reader.  They are then tokenized into
  sentences using a sentence tokenizer.  Finally, these sentences
  are parsed into chunk trees using a string-to-chunktree conversion
  function.  Each of these steps can be performed using a default
  function or a custom function.  By default, paragraphs are split
  on blank lines; sentences are listed one per line; and sentences
  are parsed into chunk trees using ``nltk.chunk.tagstr2tree``.
class_docstr_tok: ["Reader","for","chunked","(","and","optionally","tagged",")","corpora",".","Paragraphs","are","split","using","a","block","reader",".","They","are","then","tokenized","into","sentences","using","a","sentence","tokenizer",".","Finally",",","these","sentences","are","parsed","into","chunk","trees","using","a","string-to-chunktree","conversion","function",".","Each","of","these","steps","can","be","performed","using","a","default","function","or","a","custom","function",".","By","default",",","paragraphs","are","split","on","blank","lines",";","sentences","are","listed","one","per","line",";","and","sentences","are","parsed","into","chunk","trees","using","``","nltk.chunk.tagstr2tree","``","."]
docstr: :param root: The root directory for this corpus.
  :param fileids: A list or regexp specifying the fileids in this corpus.
docstr_tok: [":","param","root",":","The","root","directory","for","this","corpus",".",":","param","fileids",":","A","list","or","regexp","specifying","the","fileids","in","this","corpus","."]
code: def __init__(
      self,
      root,
      fileids,
      extension="",
      str2chunktree=tagstr2tree,
      sent_tokenizer=RegexpTokenizer("\n", gaps=True),
      para_block_reader=read_blankline_block,
      encoding="utf8",
      tagset=None,
  ):
      """
      :param root: The root directory for this corpus.
      :param fileids: A list or regexp specifying the fileids in this corpus.
      """
      CorpusReader.__init__(self, root, fileids, encoding)
      self._cv_args = (
          str2chunktree,
          sent_tokenizer,
          para_block_reader,
          tagset,
      )
      """Arguments for corpus views generated by this corpus: a tuple
          (str2chunktree, sent_tokenizer, para_block_tokenizer)"""
  
imports: import codecs
  import os.path
  import nltk
  from nltk.chunk import tagstr2tree
  from nltk.corpus.reader.api import *
  from nltk.corpus.reader.bracket_parse import BracketParseCorpusReader
  from nltk.corpus.reader.util import *
  from nltk.tokenize import *
  from nltk.tree import Tree
label_desc: Use image node_id 1 to create a new ChunkedCorpusReader object from inherited base classes: CorpusReader with example: obj = ChunkedCorpusReader(root, fileids, extension, str2chunktree, sent_tokenizer, para_block_reader, encoding, tagset)