[Update] update path -> file_path, sentence -> script
Browse files- custom_common_voice.py +2 -2
custom_common_voice.py
CHANGED
@@ -99,7 +99,7 @@ class CustomCommonVoice(datasets.GeneratorBasedBuilder):
|
|
99 |
features=features,
|
100 |
supervised_keys=None,
|
101 |
task_templates=[
|
102 |
-
AutomaticSpeechRecognition(audio_file_path_column="
|
103 |
],
|
104 |
)
|
105 |
|
@@ -159,7 +159,7 @@ class CustomCommonVoice(datasets.GeneratorBasedBuilder):
|
|
159 |
|
160 |
# audio is not a header of the csv files
|
161 |
data_fields.remove("audio")
|
162 |
-
path_idx = data_fields.index("
|
163 |
|
164 |
all_field_values = {}
|
165 |
metadata_found = False
|
|
|
99 |
features=features,
|
100 |
supervised_keys=None,
|
101 |
task_templates=[
|
102 |
+
AutomaticSpeechRecognition(audio_file_path_column="file_path", transcription_column="script")
|
103 |
],
|
104 |
)
|
105 |
|
|
|
159 |
|
160 |
# audio is not a header of the csv files
|
161 |
data_fields.remove("audio")
|
162 |
+
path_idx = data_fields.index("file_path")
|
163 |
|
164 |
all_field_values = {}
|
165 |
metadata_found = False
|