code: def _generate_corpus(self):
          
  
          target = self.temp + 'mallet'
          paths = write_documents(self.corpus, target, self.featureset_name,
                                  ['date', 'title'])
          self.corpus_path, self.metapath = paths
  
          self._export_corpus()
docs: Writes a corpus to disk amenable to MALLET topic modeling.