class_docstr: An NLTK interface to the VerbNet verb lexicon.
  
  From the VerbNet site: "VerbNet (VN) (Kipper-Schuler 2006) is the largest
  on-line verb lexicon currently available for English. It is a hierarchical
  domain-independent, broad-coverage verb lexicon with mappings to other
  lexical resources such as WordNet (Miller, 1990; Fellbaum, 1998), XTAG
  (XTAG Research Group, 2001), and FrameNet (Baker et al., 1998)."
  
  For details about VerbNet see:
  https://verbs.colorado.edu/~mpalmer/projects/verbnet.html
class_docstr_tok: ["An","NLTK","interface","to","the","VerbNet","verb","lexicon",".","From","the","VerbNet","site",":","``","VerbNet","(","VN",")","(","Kipper-Schuler","2006",")","is","the","largest","on-line","verb","lexicon","currently","available","for","English",".","It","is","a","hierarchical","domain-independent",",","broad-coverage","verb","lexicon","with","mappings","to","other","lexical","resources","such","as","WordNet","(","Miller",",","1990",";","Fellbaum",",","1998",")",",","XTAG","(","XTAG","Research","Group",",","2001",")",",","and","FrameNet","(","Baker","et","al.",",","1998",")",".","''","For","details","about","VerbNet","see",":","https",":","\/\/verbs.colorado.edu\/~mpalmer\/projects\/verbnet.html"]
docstr: Returns VerbNet class ElementTree
  
  Return an ElementTree containing the xml for the specified
  VerbNet class.
  
  :param fileid_or_classid: An identifier specifying which class
      should be returned.  Can be a file identifier (such as
      ``'put-9.1.xml'``), or a VerbNet class identifier (such as
      ``'put-9.1'``) or a short VerbNet class identifier (such as
      ``'9.1'``).
docstr_tok: ["Returns","VerbNet","class","ElementTree","Return","an","ElementTree","containing","the","xml","for","the","specified","VerbNet","class",".",":","param","fileid_or_classid",":","An","identifier","specifying","which","class","should","be","returned",".","Can","be","a","file","identifier","(","such","as","``","'put-9.1.xml","'","``",")",",","or","a","VerbNet","class","identifier","(","such","as","``","'put-9.1","'","``",")","or","a","short","VerbNet","class","identifier","(","such","as","``","'","9.1","'","``",")","."]
code: def vnclass(self, fileid_or_classid):
      """Returns VerbNet class ElementTree
  
      Return an ElementTree containing the xml for the specified
      VerbNet class.
  
      :param fileid_or_classid: An identifier specifying which class
          should be returned.  Can be a file identifier (such as
          ``'put-9.1.xml'``), or a VerbNet class identifier (such as
          ``'put-9.1'``) or a short VerbNet class identifier (such as
          ``'9.1'``).
      """
      # File identifier: just return the xml.
      if fileid_or_classid in self._fileids:
          return self.xml(fileid_or_classid)
  
      # Class identifier: get the xml, and find the right elt.
      classid = self.longid(fileid_or_classid)
      if classid in self._class_to_fileid:
          fileid = self._class_to_fileid[self.longid(classid)]
          tree = self.xml(fileid)
          if classid == tree.get("ID"):
              return tree
          else:
              for subclass in tree.findall(".//VNSUBCLASS"):
                  if classid == subclass.get("ID"):
                      return subclass
              else:
                  assert False  # we saw it during _index()!
  
      else:
          raise ValueError(f"Unknown identifier {fileid_or_classid}")
  
imports: import re
  import textwrap
  from collections import defaultdict
  from nltk.corpus.reader.xmldocs import XMLCorpusReader
label_desc: Use image node_id 5 for calling the VerbnetCorpusReader obj's underlying member method code with example usage: obj.vnclass(fileid_or_classid) and returns: self, tree, subclass