oreva commited on
Commit
1171c0e
·
1 Parent(s): ee563a6

Updated blab dataset

Browse files
README.md CHANGED
@@ -26,16 +26,14 @@ configs:
26
  dtype: string
27
  - name: question
28
  dtype: string
29
- - name: answer_type
30
- dtype: string
31
  - name: groundtruth
32
  dtype: LargeList
33
  inner_dtype:
34
  - name: word
35
  dtype: string
36
- - name: start
37
  dtype: float32
38
- - name: end
39
  dtype: float32
40
  - config_name: advertisement_localization
41
  features:
@@ -45,8 +43,6 @@ configs:
45
  dtype: string
46
  - name: question
47
  dtype: string
48
- - name: answer_type
49
- dtype: string
50
  - name: groundtruth
51
  dtype: Struct
52
  fields:
@@ -77,8 +73,6 @@ configs:
77
  dtype: string
78
  - name: question
79
  dtype: string
80
- - name: answer_type
81
- dtype: string
82
  - name: groundtruth
83
  dtype: Struct
84
  fields:
@@ -98,9 +92,9 @@ configs:
98
  inner_dtype:
99
  - name: word
100
  dtype: string
101
- - name: start
102
  dtype: float32
103
- - name: end
104
  dtype: float32
105
  - config_name: speaker_number_estimation
106
  features:
@@ -136,6 +130,13 @@ configs:
136
  dtype: string
137
  - name: groundtruth
138
  dtype: float32
 
 
 
 
 
 
 
139
  - config_name: emotion_ranking
140
  features:
141
  - name: video_url
@@ -158,8 +159,13 @@ configs:
158
  dtype: string
159
  - name: option_E
160
  dtype: string
161
- - name: correct_answer
162
  dtype: string
 
 
 
 
 
163
  - config_name: emotion_reasoning
164
  features:
165
  - name: video_url
@@ -180,8 +186,15 @@ configs:
180
  dtype: string
181
  - name: option_D
182
  dtype: string
183
- - name: correct_answer
184
  dtype: string
 
 
 
 
 
 
 
185
  ---
186
 
187
 
@@ -193,6 +206,8 @@ Brutally Long Audio Bench (BLAB) is a challenging long-form audio benchmark that
193
 
194
  NB: This data should only be used for evaluation purposes and not for model training.
195
 
 
 
196
 
197
 
198
  ## Tasks Covered in BLAB
@@ -203,7 +218,7 @@ NB: This data should only be used for evaluation purposes and not for model trai
203
  * **Advertisement Localization:** Locate and transcribe advertisement segments within a podcast.
204
 
205
  ### Counting
206
- * **Speaker Number Estimation:** Determine the number of unique speakers present in the full audio segment.
207
 
208
  ### Duration
209
  * **Event Duration:** Calculate the duration of specific acoustic events (e.g., laughter in a comedy special, question-and-answer segments in a panel session, or a particular speaker’s total speaking time in a meeting) within an audio sample,.
 
26
  dtype: string
27
  - name: question
28
  dtype: string
 
 
29
  - name: groundtruth
30
  dtype: LargeList
31
  inner_dtype:
32
  - name: word
33
  dtype: string
34
+ - name: start_timestamp
35
  dtype: float32
36
+ - name: end_timestamp
37
  dtype: float32
38
  - config_name: advertisement_localization
39
  features:
 
43
  dtype: string
44
  - name: question
45
  dtype: string
 
 
46
  - name: groundtruth
47
  dtype: Struct
48
  fields:
 
73
  dtype: string
74
  - name: question
75
  dtype: string
 
 
76
  - name: groundtruth
77
  dtype: Struct
78
  fields:
 
92
  inner_dtype:
93
  - name: word
94
  dtype: string
95
+ - name: start_time
96
  dtype: float32
97
+ - name: end_time
98
  dtype: float32
99
  - config_name: speaker_number_estimation
100
  features:
 
130
  dtype: string
131
  - name: groundtruth
132
  dtype: float32
133
+ - name: event_timestamps
134
+ dtype: LargeList
135
+ inner_dtype:
136
+ - name: start_timestamp
137
+ dtype: float32
138
+ - name: end_timestamp
139
+ dtype: float32
140
  - config_name: emotion_ranking
141
  features:
142
  - name: video_url
 
159
  dtype: string
160
  - name: option_E
161
  dtype: string
162
+ - name: groundtruth
163
  dtype: string
164
+ - name: event_timestamps
165
+ dtype: LargeList
166
+ inner_dtype:
167
+ - name: start_timestamp
168
+ dtype: float32
169
  - config_name: emotion_reasoning
170
  features:
171
  - name: video_url
 
186
  dtype: string
187
  - name: option_D
188
  dtype: string
189
+ - name: groundtruth
190
  dtype: string
191
+ - name: event_timestamps
192
+ dtype: LargeList
193
+ inner_dtype:
194
+ - name: start_timestamp
195
+ dtype: float32
196
+ - name: event
197
+ dtype: string
198
  ---
199
 
200
 
 
206
 
207
  NB: This data should only be used for evaluation purposes and not for model training.
208
 
209
+ We provide time-aligned metadata (`event_timestamps`) for the **Event Duration**, **Emotion Reasoning**, and **Emotion Ranking** tasks; time-aligned metadata for **Speaker Number Estimation** is coming soon. This metadata can also be used to evaluate long-form reasoning across timestamps. All timestamps in the dataset, including `event_timestamps`, are expressed as float seconds with millisecond precision (e.g., `200.349`).
210
+
211
 
212
 
213
  ## Tasks Covered in BLAB
 
218
  * **Advertisement Localization:** Locate and transcribe advertisement segments within a podcast.
219
 
220
  ### Counting
221
+ * **Speaker Number Estimation:** Determine the number of unique speakers present in the full audio segment. The groundtruth is provided as a range `[min, max]`.
222
 
223
  ### Duration
224
  * **Event Duration:** Calculate the duration of specific acoustic events (e.g., laughter in a comedy special, question-and-answer segments in a panel session, or a particular speaker’s total speaking time in a meeting) within an audio sample,.
blab_long_audio.py CHANGED
@@ -47,8 +47,8 @@ class BLAB(datasets.GeneratorBasedBuilder):
47
  "groundtruth": LargeList(
48
  feature=Features({
49
  "word": Value("string"),
50
- "start": Value("float32"),
51
- "end": Value("float32"),
52
  })
53
  )
54
  }),
@@ -101,8 +101,8 @@ class BLAB(datasets.GeneratorBasedBuilder):
101
  "word_timestamp": LargeList(
102
  feature=Features({
103
  "word": Value("string"),
104
- "start": Value("float32"),
105
- "end": Value("float32"),
106
  }),
107
  ),
108
  })
@@ -143,6 +143,12 @@ class BLAB(datasets.GeneratorBasedBuilder):
143
  "question": Value("string"),
144
  "groundtruth": Value("float32"),
145
  "answer_type": Value("string"),
 
 
 
 
 
 
146
  }),
147
  description="Schema for Event Duration task: identifying and timing specific events.",
148
  # ... (other metadata)
@@ -161,7 +167,12 @@ class BLAB(datasets.GeneratorBasedBuilder):
161
  "option_C": Value("string"),
162
  "option_D": Value("string"),
163
  "option_E": Value("string"),
164
- "correct_answer": Value("string"), # Stores the correct_answer string
 
 
 
 
 
165
  }),
166
  description="Schema for Emotion Ranking task: selecting the best emotion option.",
167
  # ... (other metadata)
@@ -179,7 +190,13 @@ class BLAB(datasets.GeneratorBasedBuilder):
179
  "option_B": Value("string"),
180
  "option_C": Value("string"),
181
  "option_D": Value("string"),
182
- "correct_answer": Value("string"), # Stores the correct_answer string
 
 
 
 
 
 
183
  }),
184
  description="Schema for Emotion Reasoning task: explaining emotional context.",
185
  # ... (other metadata)
@@ -250,8 +267,8 @@ class BLAB(datasets.GeneratorBasedBuilder):
250
  if isinstance(item, dict):
251
  processed_groundtruth.append({
252
  "word": item.get("word", None),
253
- "start": item.get("start", None),
254
- "end": item.get("end", None),
255
  })
256
  example["groundtruth"] = processed_groundtruth
257
 
@@ -298,8 +315,8 @@ class BLAB(datasets.GeneratorBasedBuilder):
298
  if isinstance(word_item, dict):
299
  processed_word_timestamps.append({
300
  "word": word_item.get("word", None),
301
- "start": word_item.get("start", None),
302
- "end": word_item.get("end", None),
303
  })
304
  example["groundtruth"] = {
305
  "entities": processed_entities,
@@ -323,6 +340,11 @@ class BLAB(datasets.GeneratorBasedBuilder):
323
  elif self.config.name == "event_duration":
324
  example["groundtruth"] = data.get("groundtruth", None)
325
  example["answer_type"] = data.get("answer_type", None)
 
 
 
 
 
326
 
327
  elif self.config.name == "emotion_ranking":
328
  example["type"] = data.get("type", None)
@@ -332,7 +354,12 @@ class BLAB(datasets.GeneratorBasedBuilder):
332
  example["option_C"] = data.get("option_C", None)
333
  example["option_D"] = data.get("option_D", None)
334
  example["option_E"] = data.get("option_E", None)
335
- example["correct_answer"] = data.get("correct_answer", None)
 
 
 
 
 
336
 
337
  elif self.config.name == "emotion_reasoning":
338
  example["type"] = data.get("type", None)
@@ -341,7 +368,12 @@ class BLAB(datasets.GeneratorBasedBuilder):
341
  example["option_B"] = data.get("option_B", None)
342
  example["option_C"] = data.get("option_C", None)
343
  example["option_D"] = data.get("option_D", None)
344
- example["correct_answer"] = data.get("correct_answer", None)
 
 
 
 
 
345
 
346
  else:
347
  raise ValueError(f"Unknown config name: {self.config.name}. This should not happen if BUILDER_CONFIGS and _info are consistent.")
 
47
  "groundtruth": LargeList(
48
  feature=Features({
49
  "word": Value("string"),
50
+ "start_timestamp": Value("float32"),
51
+ "end_timestamp": Value("float32"),
52
  })
53
  )
54
  }),
 
101
  "word_timestamp": LargeList(
102
  feature=Features({
103
  "word": Value("string"),
104
+ "start_time": Value("float32"),
105
+ "end_time": Value("float32"),
106
  }),
107
  ),
108
  })
 
143
  "question": Value("string"),
144
  "groundtruth": Value("float32"),
145
  "answer_type": Value("string"),
146
+ "event_timestamps": LargeList(
147
+ feature=Features({
148
+ "start_timestamp": Value("float32"),
149
+ "end_timestamp": Value("float32"),
150
+ })
151
+ ),
152
  }),
153
  description="Schema for Event Duration task: identifying and timing specific events.",
154
  # ... (other metadata)
 
167
  "option_C": Value("string"),
168
  "option_D": Value("string"),
169
  "option_E": Value("string"),
170
+ "groundtruth": Value("string"),
171
+ "event_timestamps": LargeList(
172
+ feature=Features({
173
+ "start_timestamp": Value("float32"),
174
+ })
175
+ ),
176
  }),
177
  description="Schema for Emotion Ranking task: selecting the best emotion option.",
178
  # ... (other metadata)
 
190
  "option_B": Value("string"),
191
  "option_C": Value("string"),
192
  "option_D": Value("string"),
193
+ "groundtruth": Value("string"),
194
+ "event_timestamps": LargeList(
195
+ feature=Features({
196
+ "start_timestamp": Value("float32"),
197
+ "event": Value("string"),
198
+ })
199
+ ),
200
  }),
201
  description="Schema for Emotion Reasoning task: explaining emotional context.",
202
  # ... (other metadata)
 
267
  if isinstance(item, dict):
268
  processed_groundtruth.append({
269
  "word": item.get("word", None),
270
+ "start_timestamp": item.get("start_timestamp", None),
271
+ "end_timestamp": item.get("end_timestamp", None),
272
  })
273
  example["groundtruth"] = processed_groundtruth
274
 
 
315
  if isinstance(word_item, dict):
316
  processed_word_timestamps.append({
317
  "word": word_item.get("word", None),
318
+ "start_time": word_item.get("start_time", None),
319
+ "end_time": word_item.get("end_time", None),
320
  })
321
  example["groundtruth"] = {
322
  "entities": processed_entities,
 
340
  elif self.config.name == "event_duration":
341
  example["groundtruth"] = data.get("groundtruth", None)
342
  example["answer_type"] = data.get("answer_type", None)
343
+ raw_event_ts = data.get("event_timestamps", [])
344
+ example["event_timestamps"] = [
345
+ {"start_timestamp": et.get("start_timestamp", None), "end_timestamp": et.get("end_timestamp", None)}
346
+ for et in raw_event_ts if isinstance(et, dict)
347
+ ]
348
 
349
  elif self.config.name == "emotion_ranking":
350
  example["type"] = data.get("type", None)
 
354
  example["option_C"] = data.get("option_C", None)
355
  example["option_D"] = data.get("option_D", None)
356
  example["option_E"] = data.get("option_E", None)
357
+ example["groundtruth"] = data.get("groundtruth", None)
358
+ raw_event_ts = data.get("event_timestamps", [])
359
+ example["event_timestamps"] = [
360
+ {"start_timestamp": et.get("start_timestamp", None)}
361
+ for et in raw_event_ts if isinstance(et, dict)
362
+ ]
363
 
364
  elif self.config.name == "emotion_reasoning":
365
  example["type"] = data.get("type", None)
 
368
  example["option_B"] = data.get("option_B", None)
369
  example["option_C"] = data.get("option_C", None)
370
  example["option_D"] = data.get("option_D", None)
371
+ example["groundtruth"] = data.get("groundtruth", None)
372
+ raw_event_ts = data.get("event_timestamps", [])
373
+ example["event_timestamps"] = [
374
+ {"start_timestamp": et.get("start_timestamp", None), "event": et.get("event", None)}
375
+ for et in raw_event_ts if isinstance(et, dict)
376
+ ]
377
 
378
  else:
379
  raise ValueError(f"Unknown config name: {self.config.name}. This should not happen if BUILDER_CONFIGS and _info are consistent.")
blab_long_audio/advertisement_localization.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dd9361ec91fa14691b3a20cfc96cae235d6bcbb20c58a583a515a828ac0beb5d
3
- size 387057817
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6329627fa291e052838f4f3d62a4f10e0b70b6853e4d02a1a8b7e3bb8ceffcf1
3
+ size 188071676
blab_long_audio/emotion_ranking.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6779de03411d7d73c5587cd75afb6bd12397f2868e43c2a97d6fc3c60d23ca6f
3
- size 87283
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c23842b90d187b0d20b556bae8aa6e45e32b9f813641c5f67841e4b5e41c154d
3
+ size 108514
blab_long_audio/emotion_reasoning.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:988caa7276998f1bff907c95d0e79a616cbb273586a77b795187ac53f8d7c368
3
- size 31796
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34ddb2af6e4a15641061f02ef4fc76262dcc7823a57c8f5da03c54ec27cc754b
3
+ size 56911
blab_long_audio/entire_duration.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:75721fa1c6b04d188d5ce583d7ab015fd28ba9e05c687a33e52c32406be087cc
3
  size 45631
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39071d6440fbcf51b178fb0ed8dbae0c84817904b83a7397c3c980d414c53c22
3
  size 45631
blab_long_audio/event_duration.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ecf59f114e3660ca8cc11bbc64a3309481af1284b4524d55a2d0f7db4dc49c93
3
- size 62680
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0feb492947d698098efe4cb44100c1daeb23bce8133f3419b0852ede8f6354d0
3
+ size 168378
blab_long_audio/named_entity_localization.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:834fd0b3f150829421c45121ffdf3804039c92202aeeec32eb090eb4f6483d5c
3
- size 308743971
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60baae7931dc5f5d1ee1f17b704dc90bfa9cb8ba0ee29e41eb2db648cea57940
3
+ size 162026769
blab_long_audio/speaker_number_estimation.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:820dd675d315385c536dd4998ff7358ed022f0c7690bacaa9c90ed6550fe4bbe
3
  size 49593
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cab2ddaa5de50a16858e3d8361f352c854acba0bb3efd48a890b8c46b8f3b29
3
  size 49593
blab_long_audio/word_localization.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7e9082228785306a544af3b7ba753f308e1f5b12e49c2a1808e68ee11461190a
3
- size 268796546
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b43dfa1813ba87db0458792691bf51456d2f26e09fe8f039ed2f07f075e5cc2e
3
+ size 184463350