Add task template for automatic speech recognition
MEMBER
@SBrandeis @lhoestq i've integrated your suggestions, so this is ready for another review :)
2021-06-23T14:59:36Z
https://github.com/huggingface/datasets/pull/2533#issuecomment-866913618
https://api.github.com/repos/huggingface/datasets/issues/2533
MDEyOklzc3VlQ29tbWVudDg2NjkxMzYxOA==
https://api.github.com/repos/huggingface/datasets/issues/comments/866913618/reactions
2021-06-23T14:59:36Z
https://api.github.com/repos/huggingface/datasets/issues/comments/866913618
https://avatars.githubusercontent.com/u/26859204?v=4
https://api.github.com/users/lewtun/events{/privacy}
https://api.github.com/users/lewtun/followers
https://api.github.com/users/lewtun/following{/other_user}
https://api.github.com/users/lewtun/gists{/gist_id}
https://github.com/lewtun
lewtun
MDQ6VXNlcjI2ODU5MjA0
https://api.github.com/users/lewtun/orgs
https://api.github.com/users/lewtun/received_events
https://api.github.com/users/lewtun/repos
https://api.github.com/users/lewtun/starred{/owner}{/repo}
https://api.github.com/users/lewtun/subscriptions
User
https://api.github.com/users/lewtun
public
MEMBER
Merging if it's good for you @lewtun :)
2021-06-23T15:55:36Z
https://github.com/huggingface/datasets/pull/2533#issuecomment-866961642
https://api.github.com/repos/huggingface/datasets/issues/2533
MDEyOklzc3VlQ29tbWVudDg2Njk2MTY0Mg==
https://api.github.com/repos/huggingface/datasets/issues/comments/866961642/reactions
2021-06-23T15:56:02Z
https://api.github.com/repos/huggingface/datasets/issues/comments/866961642
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
This PR adds a task template for automatic speech recognition. In this task, the input is a path to an audio file which the model consumes to produce a transcription.

Usage:

```python
from datasets import load_dataset
from datasets.tasks import AutomaticSpeechRecognition

ds = load_dataset("timit_asr", split="train[:10]")
# Dataset({
#     features: ['file', 'text', 'phonetic_detail', 'word_detail', 'dialect_region', 'sentence_type', 'speaker_id', 'id'],
#     num_rows: 10
# })

task = AutomaticSpeechRecognition(audio_file_column="file", transcription_column="text")
ds.prepare_for_task(task)
# Dataset({
#     features: ['audio_file', 'transcription'],
#     num_rows: 10
# })
```