Task templates

The tasks supported by datasets.Dataset.prepare_for_task and datasets.DatasetDict.prepare_for_task.

class datasets.tasks.QuestionAnsweringExtractive(task: str = 'question-answering-extractive', question_column: str = 'question', context_column: str = 'context', answers_column: str = 'answers')[source]
class datasets.tasks.TextClassification(task: str = 'text-classification', text_column: str = 'text', label_column: str = 'labels', labels: Union[Tuple[str], NoneType] = None)[source]