class_docstr: This class implements:
    - ``__init__``, which specifies the location of the corpus
      and a method for detecting the sentence blocks in corpus files.
    - ``_read_block``, which reads a block from the input stream.
    - ``_word``, which takes a block and returns a list of list of words.
    - ``_tag``, which takes a block and returns a list of list of tagged
      words.
    - ``_parse``, which takes a block and returns a list of parsed
      sentences.
  
  The structure of tagged words:
    tagged_word = (word(str), tags(tuple))
    tags = (surface, reading, lemma, pos1, posid1, pos2, posid2, pos3, posid3, others ...)
  
  Usage example
  
  >>> from nltk.corpus.util import LazyCorpusLoader
  >>> knbc = LazyCorpusLoader(
  ...     'knbc/corpus1',
  ...     KNBCorpusReader,
  ...     r'.*/KN.*',
  ...     encoding='euc-jp',
  ... )
  
  >>> len(knbc.sents()[0])
  9
class_docstr_tok: ["This","class","implements",":","-","``","__init__","``",",","which","specifies","the","location","of","the","corpus","and","a","method","for","detecting","the","sentence","blocks","in","corpus","files",".","-","``","_read_block","``",",","which","reads","a","block","from","the","input","stream",".","-","``","_word","``",",","which","takes","a","block","and","returns","a","list","of","list","of","words",".","-","``","_tag","``",",","which","takes","a","block","and","returns","a","list","of","list","of","tagged","words",".","-","``","_parse","``",",","which","takes","a","block","and","returns","a","list","of","parsed","sentences",".","The","structure","of","tagged","words",":","tagged_word","=","(","word","(","str",")",",","tags","(","tuple",")",")","tags","=","(","surface",",","reading",",","lemma",",","pos1",",","posid1",",","pos2",",","posid2",",","pos3",",","posid3",",","others","...",")","Usage","example",">",">",">","from","nltk.corpus.util","import","LazyCorpusLoader",">",">",">","knbc","=","LazyCorpusLoader","(","...","'knbc\/corpus1","'",",","...","KNBCorpusReader",",","...","r'.","*","\/KN",".","*","'",",","...","encoding='euc-jp","'",",","...",")",">",">",">","len","(","knbc.sents","(",")","[","0","]",")","9"]
docstr: Initialize KNBCorpusReader
  morphs2str is a function to convert morphlist to str for tree representation
  for _parse()
docstr_tok: ["Initialize","KNBCorpusReader","morphs2str","is","a","function","to","convert","morphlist","to","str","for","tree","representation","for","_parse","(",")"]
code: def __init__(
      self,
      root,
      fileids,
      encoding="utf8",
      morphs2str=_morphs2str_default,
  ):
      """
      Initialize KNBCorpusReader
      morphs2str is a function to convert morphlist to str for tree representation
      for _parse()
      """
      SyntaxCorpusReader.__init__(self, root, fileids, encoding)
      self.morphs2str = morphs2str
  
file_path: nltk/nltk/corpus/reader/knbc.py
imports: import re
  from nltk.corpus.reader.api import CorpusReader, SyntaxCorpusReader
  from nltk.corpus.reader.util import FileSystemPathPointer, find_corpus_fileids, read_blankline_block
  from nltk.parse import DependencyGraph
label_desc: Use image node_id 1 to create a new KNBCorpusReader object from inherited base classes: SyntaxCorpusReader with example: obj = KNBCorpusReader(root, fileids, encoding, morphs2str)