lhoestq HF staff commited on
Commit
01a63c9
1 Parent(s): c44b871

Use audio feature in ASR task template (#4006)

Browse files

* use audio feature in ASR task template

* update datasets

* update tests

* typo

* update dataset_infos.json

Commit from https://github.com/huggingface/datasets/commit/32e0e79aa57b36a269b6f2ee38449a043a393e50

Files changed (1) hide show
  1. common_voice.py +1 -3
common_voice.py CHANGED
@@ -652,9 +652,7 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
652
  homepage=_HOMEPAGE,
653
  license=_LICENSE,
654
  citation=_CITATION,
655
- task_templates=[
656
- AutomaticSpeechRecognition(audio_file_path_column="path", transcription_column="sentence")
657
- ],
658
  )
659
 
660
  def _split_generators(self, dl_manager):
 
652
  homepage=_HOMEPAGE,
653
  license=_LICENSE,
654
  citation=_CITATION,
655
+ task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="sentence")],
 
 
656
  )
657
 
658
  def _split_generators(self, dl_manager):