sanchit-gandhi
commited on
Commit
·
d9c2d06
1
Parent(s):
1b92920
uniform dataset ids
Browse files- ami-ihm.py +3 -3
ami-ihm.py
CHANGED
@@ -294,7 +294,7 @@ class AMI(datasets.GeneratorBasedBuilder):
|
|
294 |
features = datasets.Features(
|
295 |
{
|
296 |
"meeting_id": datasets.Value("string"),
|
297 |
-
"
|
298 |
"text": datasets.Value("string"),
|
299 |
"audio": datasets.Audio(sampling_rate=16_000),
|
300 |
"begin_time": datasets.Value("float32"),
|
@@ -400,7 +400,7 @@ class AMI(datasets.GeneratorBasedBuilder):
|
|
400 |
audio_filename = "_".join([split, _id.lower()]) + ".wav"
|
401 |
|
402 |
transcriptions[audio_filename] = {
|
403 |
-
"
|
404 |
"meeting_id": meeting_id,
|
405 |
"text": text,
|
406 |
"begin_time": int(begin_time) / 100,
|
@@ -417,7 +417,7 @@ class AMI(datasets.GeneratorBasedBuilder):
|
|
417 |
|
418 |
idx = 0
|
419 |
|
420 |
-
features = ["meeting_id", "
|
421 |
for archive, local_archive_path in zip(audio_archives, local_extracted_archives_paths):
|
422 |
for audio_path, audio_file in archive:
|
423 |
# adapt for sdm
|
|
|
294 |
features = datasets.Features(
|
295 |
{
|
296 |
"meeting_id": datasets.Value("string"),
|
297 |
+
"id": datasets.Value("string"),
|
298 |
"text": datasets.Value("string"),
|
299 |
"audio": datasets.Audio(sampling_rate=16_000),
|
300 |
"begin_time": datasets.Value("float32"),
|
|
|
400 |
audio_filename = "_".join([split, _id.lower()]) + ".wav"
|
401 |
|
402 |
transcriptions[audio_filename] = {
|
403 |
+
"id": _id,
|
404 |
"meeting_id": meeting_id,
|
405 |
"text": text,
|
406 |
"begin_time": int(begin_time) / 100,
|
|
|
417 |
|
418 |
idx = 0
|
419 |
|
420 |
+
features = ["meeting_id", "id", "text", "begin_time", "end_time", "microphone_id", "speaker_id"]
|
421 |
for archive, local_archive_path in zip(audio_archives, local_extracted_archives_paths):
|
422 |
for audio_path, audio_file in archive:
|
423 |
# adapt for sdm
|