Datasets:
strip down file_name in dataset
Browse files- nb_samtale.py +1 -0
nb_samtale.py
CHANGED
@@ -155,6 +155,7 @@ class NBSamtale(datasets.GeneratorBasedBuilder):
|
|
155 |
for row in datalines:
|
156 |
data = json.loads(row)
|
157 |
audio_path = data["file_name"]
|
|
|
158 |
data["transcription"] = data[self.config.name]
|
159 |
meta[audio_path] = data
|
160 |
|
|
|
155 |
for row in datalines:
|
156 |
data = json.loads(row)
|
157 |
audio_path = data["file_name"]
|
158 |
+
data["file_name"] = data["file_name"].split("/")[-1]
|
159 |
data["transcription"] = data[self.config.name]
|
160 |
meta[audio_path] = data
|
161 |
|