class_docstr: Corpus reader for the SemCor Corpus.
  For access to the complete XML data structure, use the ``xml()``
  method.  For access to simple word lists and tagged word lists, use
  ``words()``, ``sents()``, ``tagged_words()``, and ``tagged_sents()``.
docstr: Helper used to implement the view methods -- returns a list of
  tokens, (segmented) words, chunks, or sentences. The tokens
  and chunks may optionally be tagged (with POS and sense
  information).
  
  :param fileid: The name of the underlying file.
  :param unit: One of `'token'`, `'word'`, or `'chunk'`.
  :param bracket_sent: If true, include sentence bracketing.
  :param pos_tag: Whether to include part-of-speech tags.
  :param sem_tag: Whether to include semantic tags, namely WordNet lemma
      and OOV named entity status.
docstr_tok: ["Helper","used","to","implement","the","view","methods","--","returns","a","list","of","tokens",",","(","segmented",")","words",",","chunks",",","or","sentences",".","The","tokens","and","chunks","may","optionally","be","tagged","(","with","POS","and","sense","information",")",".",":","param","fileid",":","The","name","of","the","underlying","file",".",":","param","unit",":","One","of","`","'token","'","`",",","`","'word","'","`",",","or","`","'chunk","'","`",".",":","param","bracket_sent",":","If","true",",","include","sentence","bracketing",".",":","param","pos_tag",":","Whether","to","include","part-of-speech","tags",".",":","param","sem_tag",":","Whether","to","include","semantic","tags",",","namely","WordNet","lemma","and","OOV","named","entity","status","."]
code: def _words(self, fileid, unit, bracket_sent, pos_tag, sem_tag):
      """
      Helper used to implement the view methods -- returns a list of
      tokens, (segmented) words, chunks, or sentences. The tokens
      and chunks may optionally be tagged (with POS and sense
      information).
  
      :param fileid: The name of the underlying file.
      :param unit: One of `'token'`, `'word'`, or `'chunk'`.
      :param bracket_sent: If true, include sentence bracketing.
      :param pos_tag: Whether to include part-of-speech tags.
      :param sem_tag: Whether to include semantic tags, namely WordNet lemma
          and OOV named entity status.
      """
      assert unit in ("token", "word", "chunk")
      result = []
  
      xmldoc = ElementTree.parse(fileid).getroot()
      for xmlsent in xmldoc.findall(".//s"):
          sent = []
          for xmlword in _all_xmlwords_in(xmlsent):
              itm = SemcorCorpusReader._word(
                  xmlword, unit, pos_tag, sem_tag, self._wordnet
              )
              if unit == "word":
                  sent.extend(itm)
              else:
                  sent.append(itm)
  
          if bracket_sent:
              result.append(
                  SemcorSentence(xmlsent.attrib["snum"], sent)
              )
          else:
              result.extend(sent)
  
      assert None not in result
      return result
  
imports: from nltk.corpus.reader.api import *
  from nltk.corpus.reader.xmldocs import XMLCorpusReader, XMLCorpusView
  from nltk.tree import Tree
label_desc: Use image node_id 9 for calling the SemcorCorpusReader obj's underlying member method code with example usage: obj._words(fileid, unit, bracket_sent, pos_tag, sem_tag) and returns: result