任务模板
Task API 已被弃用,取而代之的是 train-eval-index
,并将从下一个主要版本中移除。
由 Dataset.prepare_for_task() 和 DatasetDict.prepare_for_task() 支持的任务。
class datasets.AutomaticSpeechRecognition
< source >( task: str = 'automatic-speech-recognition' audio_column: str = 'audio' transcription_column: str = 'transcription' )
class datasets.音频分类
< source >( task: str = 'audio-classification' audio_column: str = 'audio' label_column: str = 'labels' )
class datasets.图像分类
< source >( task: str = 'image-classification' image_column: str = 'image' label_column: str = 'labels' )
class datasets.抽取式问答
< source >( task: str = 'question-answering-extractive' question_column: str = 'question' context_column: str = 'context' answers_column: str = 'answers' )
class datasets.摘要
< source >( task: str = 'summarization' text_column: str = 'text' summary_column: str = 'summary' )
class datasets.文本分类
< source >