Remove deprecated tasks
Browse filesThis dataset uses `tasks`, which are deprecated and will raise an error after the next major release of `datasets`. See: https://github.com/huggingface/datasets/pull/6999
- youtube_casual_audio.py +0 -4
youtube_casual_audio.py
CHANGED
@@ -16,7 +16,6 @@
|
|
16 |
|
17 |
|
18 |
import datasets
|
19 |
-
from datasets.tasks import AutomaticSpeechRecognition
|
20 |
import pandas as pd
|
21 |
import re
|
22 |
|
@@ -97,9 +96,6 @@ class YoutubeCasualAudio(datasets.GeneratorBasedBuilder):
|
|
97 |
description=_DESCRIPTION,
|
98 |
features=features,
|
99 |
supervised_keys=None,
|
100 |
-
task_templates=[
|
101 |
-
AutomaticSpeechRecognition(audio_file_path_column="file_path", transcription_column="script")
|
102 |
-
],
|
103 |
)
|
104 |
|
105 |
def _split_generators(self, dl_manager):
|
|
|
16 |
|
17 |
|
18 |
import datasets
|
|
|
19 |
import pandas as pd
|
20 |
import re
|
21 |
|
|
|
96 |
description=_DESCRIPTION,
|
97 |
features=features,
|
98 |
supervised_keys=None,
|
|
|
|
|
|
|
99 |
)
|
100 |
|
101 |
def _split_generators(self, dl_manager):
|