def list_corpora(self):
        """Show corpora available for the CLTK to download."""
        try:
            # corpora = LANGUAGE_CORPORA[self.language]
            corpora = self.all_corpora
            corpus_names = [corpus['name'] for corpus in corpora]
            return corpus_names
        except (NameError, KeyError) as error:
            msg = 'Corpus not available for language "{}": {}'.format(self.language, error)
            logger.error(msg)
            raise CorpusImportError(msg)
def list_corpora ( self ) : try : corpora = self . all_corpora corpus_names = [ corpus [ 'name' ] for corpus in corpora ] return corpus_names except ( NameError , KeyError ) as error : msg = 'Corpus not available for language "{}": {}' . format ( self . language , error ) logger . error ( msg ) raise CorpusImportError ( msg )
Show corpora available for the CLTK to download.