joanllop commited on
Commit
d840287
1 Parent(s): d60a18c

Update for version 2.7.1

Browse files

It seems that in datasets 2.7.1 the AutomaticSpeechRecognition task template has changed and the parameter audio_file_path_column="file" has changed to audio_column="audio" as can be seen in [here](https://github.com/huggingface/datasets/blob/99680a7b5946d41873d84e16b30a2587b1f935fa/src/datasets/tasks/automatic_speech_recognition.py#L14) . By default the audio_column is "audio" and that exactly our feature so it should work with the default value.

Files changed (1) hide show
  1. parlament_parla.py +2 -2
parlament_parla.py CHANGED
@@ -59,7 +59,7 @@ _SPLITS = {datasets.Split.TRAIN: "train", datasets.Split.VALIDATION: "dev", data
59
  class ParlamentParla(datasets.GeneratorBasedBuilder):
60
  """ParlamentParla."""
61
 
62
- VERSION = datasets.Version("2.0.0")
63
 
64
  BUILDER_CONFIGS = [
65
  datasets.BuilderConfig(name="clean", version=VERSION, description="211 hours of clean quality segments."),
@@ -84,7 +84,7 @@ class ParlamentParla(datasets.GeneratorBasedBuilder):
84
  license=_LICENSE,
85
  citation=_CITATION,
86
  task_templates=[
87
- AutomaticSpeechRecognition(audio_file_path_column="path", transcription_column="sentence")
88
  ],
89
  )
90
 
 
59
  class ParlamentParla(datasets.GeneratorBasedBuilder):
60
  """ParlamentParla."""
61
 
62
+ VERSION = datasets.Version("2.7.1")
63
 
64
  BUILDER_CONFIGS = [
65
  datasets.BuilderConfig(name="clean", version=VERSION, description="211 hours of clean quality segments."),
 
84
  license=_LICENSE,
85
  citation=_CITATION,
86
  task_templates=[
87
+ AutomaticSpeechRecognition(transcription_column="sentence")
88
  ],
89
  )
90