code: def docs(self, fileids=None) -> Generator[Dict[str, Any], Dict[str, Any], None]:
          
          # Create a generator, loading one document into memory at a time.
          for path, encoding in self.abspaths(fileids, include_encoding=True):
              with codecs.open(path, 'r', encoding=encoding) as reader:
                  the_doc = json.loads(reader.read())
                  if 'filename' not in the_doc:
                      the_doc['filename'] = path
                  yield the_doc
docs: Returns the complete text of an Text document, closing the document
          after we are done reading it and yielding it in a memory safe fashion.
          :return : Python Dictionary of strings or Nested Dictionaries. The top level dictionary
          also contains the filename from which it spawned.