Datasets
  • 🌍GET STARTED
    • Datasets
    • Quickstart
    • Installation
  • 🌍TUTORIALS
    • Overview
    • Load a dataset from the Hub
    • Know your dataset
    • Preprocess
    • Evaluate predictions
    • Create a data
    • Share a dataset to the Hub
  • 🌍HOW-TO GUIDES
    • Overview
    • 🌍GENERAL USAGE
      • Load
      • Process
      • Stream
      • Use with TensorFlow
      • Use with PyTorch
      • Use with JAX
      • Use with Spark
      • Cache management
      • Cloud storage
      • Search index
      • Metrics
      • Beam Datasets
    • 🌍AUDIO
      • Load audio data
      • Process audio data
      • Create an audio dataset
    • 🌍VISION
      • Load image data
      • Process image data
      • Create an image dataset
      • Depth estimation
      • Image classification
      • Semantic segmentation
      • Object detection
    • 🌍TEXT
      • Load text data
      • Process text data
    • 🌍TABULAR
      • Load tabular data
    • 🌍DATASET REPOSITORY
      • Share
      • Create a dataset card
      • Structure your repository
      • Create a dataset loading script
  • 🌍CONCEPTUAL GUIDES
    • Datasets with Arrow
    • The cache
    • Dataset or IterableDataset
    • Dataset features
    • Build and load
    • Batch mapping
    • All about metrics
  • 🌍REFERENCE
    • Main classes
    • Builder classes
    • Loading methods
    • Table Classes
    • Logging methods
    • Task templates
Powered by GitBook
On this page
  1. REFERENCE

Task templates

PreviousLogging methods

Last updated 1 year ago

Task templates

The Task API is deprecated in favor of and will be removed in the next major release.

The tasks supported by and .

class datasets.AutomaticSpeechRecognition

( task: str = 'automatic-speech-recognition'audio_column: str = 'audio'transcription_column: str = 'transcription' )

class datasets.AudioClassification

( task: str = 'audio-classification'audio_column: str = 'audio'label_column: str = 'labels' )

class datasets.ImageClassification

( task: str = 'image-classification'image_column: str = 'image'label_column: str = 'labels' )

align_with_features

( features )

class datasets.LanguageModeling

( task: str = 'language-modeling'text_column: str = 'text' )

class datasets.QuestionAnsweringExtractive

( task: str = 'question-answering-extractive'question_column: str = 'question'context_column: str = 'context'answers_column: str = 'answers' )

class datasets.Summarization

( task: str = 'summarization'text_column: str = 'text'summary_column: str = 'summary' )

class datasets.TextClassification

( task: str = 'text-classification'text_column: str = 'text'label_column: str = 'labels' )

align_with_features

( features )

🌍
train-eval-index
Dataset.prepare_for_task()
DatasetDict.prepare_for_task()
<source>
<source>
<source>
<source>
<source>
<source>
<source>
<source>
<source>