class_docstr: Corpus reader for the XML version of the CHILDES corpus.
  The CHILDES corpus is available at ``https://childes.talkbank.org/``. The XML
  version of CHILDES is located at ``https://childes.talkbank.org/data-xml/``.
  Copy the needed parts of the CHILDES XML corpus into the NLTK data directory
  (``nltk_data/corpora/CHILDES/``).
  
  For access to the file text use the usual nltk functions,
  ``words()``, ``sents()``, ``tagged_words()`` and ``tagged_sents()``.
class_docstr_tok: ["Corpus","reader","for","the","XML","version","of","the","CHILDES","corpus",".","The","CHILDES","corpus","is","available","at","``","https",":","\/\/childes.talkbank.org\/","``",".","The","XML","version","of","CHILDES","is","located","at","``","https",":","\/\/childes.talkbank.org\/data-xml\/","``",".","Copy","the","needed","parts","of","the","CHILDES","XML","corpus","into","the","NLTK","data","directory","(","``","nltk_data\/corpora\/CHILDES\/","``",")",".","For","access","to","the","file","text","use","the","usual","nltk","functions",",","``","words","(",")","``",",","``","sents","(",")","``",",","``","tagged_words","(",")","``","and","``","tagged_sents","(",")","``","."]
docstr: :return: the given file(s) as a list of
      sentences, each encoded as a list of ``(word,tag)`` tuples.
  :rtype: list(list(tuple(str,str)))
  
  :param speaker: If specified, select specific speaker(s) defined
      in the corpus. Default is 'ALL' (all participants). Common choices
      are 'CHI' (the child), 'MOT' (mother), ['CHI','MOT'] (exclude
      researchers)
  :param stem: If true, then use word stems instead of word strings.
  :param relation: If true, then return tuples of ``(str,pos,relation_list)``.
      If there is manually-annotated relation info, it will return
      tuples of ``(str,pos,test_relation_list,str,pos,gold_relation_list)``
  :param strip_space: If true, then strip trailing spaces from word
      tokens. Otherwise, leave the spaces on the tokens.
  :param replace: If true, then use the replaced (intended) word instead
      of the original word (e.g., 'wat' will be replaced with 'watch')
docstr_tok: [":","return",":","the","given","file","(","s",")","as","a","list","of","sentences",",","each","encoded","as","a","list","of","``","(","word",",","tag",")","``","tuples",".",":","rtype",":","list","(","list","(","tuple","(","str",",","str",")",")",")",":","param","speaker",":","If","specified",",","select","specific","speaker","(","s",")","defined","in","the","corpus",".","Default","is","'ALL","'","(","all","participants",")",".","Common","choices","are","'CHI","'","(","the","child",")",",","'MOT","'","(","mother",")",",","[","'CHI","'",",","'MOT","'","]","(","exclude","researchers",")",":","param","stem",":","If","true",",","then","use","word","stems","instead","of","word","strings",".",":","param","relation",":","If","true",",","then","return","tuples","of","``","(","str",",","pos",",","relation_list",")","``",".","If","there","is","manually-annotated","relation","info",",","it","will","return","tuples","of","``","(","str",",","pos",",","test_relation_list",",","str",",","pos",",","gold_relation_list",")","``",":","param","strip_space",":","If","true",",","then","strip","trailing","spaces","from","word","tokens",".","Otherwise",",","leave","the","spaces","on","the","tokens",".",":","param","replace",":","If","true",",","then","use","the","replaced","(","intended",")","word","instead","of","the","original","word","(","e.g.",",","'wat","'","will","be","replaced","with","'watch","'",")"]
code: def tagged_sents(
      self,
      fileids=None,
      speaker="ALL",
      stem=False,
      relation=None,
      strip_space=True,
      replace=False,
  ):
      """
      :return: the given file(s) as a list of
          sentences, each encoded as a list of ``(word,tag)`` tuples.
      :rtype: list(list(tuple(str,str)))
  
      :param speaker: If specified, select specific speaker(s) defined
          in the corpus. Default is 'ALL' (all participants). Common choices
          are 'CHI' (the child), 'MOT' (mother), ['CHI','MOT'] (exclude
          researchers)
      :param stem: If true, then use word stems instead of word strings.
      :param relation: If true, then return tuples of ``(str,pos,relation_list)``.
          If there is manually-annotated relation info, it will return
          tuples of ``(str,pos,test_relation_list,str,pos,gold_relation_list)``
      :param strip_space: If true, then strip trailing spaces from word
          tokens. Otherwise, leave the spaces on the tokens.
      :param replace: If true, then use the replaced (intended) word instead
          of the original word (e.g., 'wat' will be replaced with 'watch')
      """
      sent = True
      pos = True
      if not self._lazy:
          return [
              self._get_words(
                  fileid,
                  speaker,
                  sent,
                  stem,
                  relation,
                  pos,
                  strip_space,
                  replace,
              )
              for fileid in self.abspaths(fileids)
          ]
  
      get_words = lambda fileid: self._get_words(
          fileid,
          speaker,
          sent,
          stem,
          relation,
          pos,
          strip_space,
          replace,
      )
      return LazyConcatenation(
          LazyMap(get_words, self.abspaths(fileids))
      )
  
imports: import re
  from collections import defaultdict
  from nltk.corpus.reader.util import concat
  from nltk.corpus.reader.xmldocs import ElementTree, XMLCorpusReader
  from nltk.util import LazyConcatenation, LazyMap, flatten
label_desc: Use image node_id 5 for calling the CHILDESCorpusReader obj's underlying member method code with example usage: obj.tagged_sents(fileids, speaker, stem, relation, strip_space, replace) and returns: LazyConcatenation, unknown