class_docstr: A base class for "corpus reader" classes, each of which can be
  used to read a specific corpus format.  Each individual corpus
  reader instance is used to read a specific corpus, consisting of
  one or more files under a common root directory.  Each file is
  identified by its ``file identifier``, which is the relative path
  to the file from the root directory.
  
  A separate subclass is defined for each corpus format.  These
  subclasses define one or more methods that provide 'views' on the
  corpus contents, such as ``words()`` (for a list of words) and
  ``parsed_sents()`` (for a list of parsed sentences).  Called with
  no arguments, these methods will return the contents of the entire
  corpus.  For most corpora, these methods define one or more
  selection arguments, such as ``fileids`` or ``categories``, which can
  be used to select which portion of the corpus should be returned.
class_docstr_tok: ["A","base","class","for","``","corpus","reader","''","classes",",","each","of","which","can","be","used","to","read","a","specific","corpus","format",".","Each","individual","corpus","reader","instance","is","used","to","read","a","specific","corpus",",","consisting","of","one","or","more","files","under","a","common","root","directory",".","Each","file","is","identified","by","its","``","file","identifier","``",",","which","is","the","relative","path","to","the","file","from","the","root","directory",".","A","separate","subclass","is","defined","for","each","corpus","format",".","These","subclasses","define","one","or","more","methods","that","provide","'views","'","on","the","corpus","contents",",","such","as","``","words","(",")","``","(","for","a","list","of","words",")","and","``","parsed_sents","(",")","``","(","for","a","list","of","parsed","sentences",")",".","Called","with","no","arguments",",","these","methods","will","return","the","contents","of","the","entire","corpus",".","For","most","corpora",",","these","methods","define","one","or","more","selection","arguments",",","such","as","``","fileids","``","or","``","categories","``",",","which","can","be","used","to","select","which","portion","of","the","corpus","should","be","returned","."]
docstr: Return a list of the absolute paths for all fileids in this corpus;
  or for the given list of fileids, if specified.
  
  :type fileids: None or str or list
  :param fileids: Specifies the set of fileids for which paths should
      be returned.  Can be None, for all fileids; a list of
      file identifiers, for a specified set of fileids; or a single
      file identifier, for a single file.  Note that the return
      value is always a list of paths, even if ``fileids`` is a
      single file identifier.
  
  :param include_encoding: If true, then return a list of
      ``(path_pointer, encoding)`` tuples.
  
  :rtype: list(PathPointer)
docstr_tok: ["Return","a","list","of","the","absolute","paths","for","all","fileids","in","this","corpus",";","or","for","the","given","list","of","fileids",",","if","specified",".",":","type","fileids",":","None","or","str","or","list",":","param","fileids",":","Specifies","the","set","of","fileids","for","which","paths","should","be","returned",".","Can","be","None",",","for","all","fileids",";","a","list","of","file","identifiers",",","for","a","specified","set","of","fileids",";","or","a","single","file","identifier",",","for","a","single","file",".","Note","that","the","return","value","is","always","a","list","of","paths",",","even","if","``","fileids","``","is","a","single","file","identifier",".",":","param","include_encoding",":","If","true",",","then","return","a","list","of","``","(","path_pointer",",","encoding",")","``","tuples",".",":","rtype",":","list","(","PathPointer",")"]
code: def abspaths(
      self, fileids=None, include_encoding=False, include_fileid=False
  ):
      """
      Return a list of the absolute paths for all fileids in this corpus;
      or for the given list of fileids, if specified.
  
      :type fileids: None or str or list
      :param fileids: Specifies the set of fileids for which paths should
          be returned.  Can be None, for all fileids; a list of
          file identifiers, for a specified set of fileids; or a single
          file identifier, for a single file.  Note that the return
          value is always a list of paths, even if ``fileids`` is a
          single file identifier.
  
      :param include_encoding: If true, then return a list of
          ``(path_pointer, encoding)`` tuples.
  
      :rtype: list(PathPointer)
      """
      if fileids is None:
          fileids = self._fileids
      elif isinstance(fileids, str):
          fileids = [fileids]
  
      paths = [self._root.join(f) for f in fileids]
  
      if include_encoding and include_fileid:
          return list(
              zip(paths, [self.encoding(f) for f in fileids], fileids)
          )
      elif include_fileid:
          return list(zip(paths, fileids))
      elif include_encoding:
          return list(zip(paths, [self.encoding(f) for f in fileids]))
      else:
          return paths
  
imports: import os
  import re
  from collections import defaultdict
  from itertools import chain
  from nltk.corpus.reader.util import *
  from nltk.data import FileSystemPathPointer, PathPointer, ZipFilePathPointer
label_desc: Use image node_id 9 for calling the CorpusReader obj's underlying member method code with example usage: obj.abspaths(fileids, include_encoding, include_fileid) and returns: list, list, list, paths