Georgios Spithourakis commited on
Commit ·
495c959
1
Parent(s): 1b529bb
Update evi.py
Browse files
evi.py
CHANGED
|
@@ -45,7 +45,7 @@ _HOMEPAGE_URL = "https://arxiv.org/abs/2204.13496"
|
|
| 45 |
|
| 46 |
_AUDIO_DATA_URL = "https://poly-public-data.s3.eu-west-2.amazonaws.com/evi-paper/audios.zip" # noqa
|
| 47 |
|
| 48 |
-
_VERSION = datasets.Version("0.0.
|
| 49 |
|
| 50 |
|
| 51 |
class EviConfig(datasets.BuilderConfig):
|
|
@@ -98,7 +98,7 @@ class Evi(datasets.GeneratorBasedBuilder):
|
|
| 98 |
"asr_nbest": datasets.Sequence(datasets.Value("string")),
|
| 99 |
#
|
| 100 |
"path": datasets.Value("string"),
|
| 101 |
-
"audio": datasets.Audio(sampling_rate=8_000),
|
| 102 |
}
|
| 103 |
)
|
| 104 |
|
|
@@ -173,7 +173,7 @@ class Evi(datasets.GeneratorBasedBuilder):
|
|
| 173 |
"asr_transcription": dictrow["transcription"],
|
| 174 |
"asr_nbest": json.loads(dictrow["nbest"]),
|
| 175 |
"path": file_path,
|
| 176 |
-
"audio": file_path,
|
| 177 |
}
|
| 178 |
yield key, example
|
| 179 |
key += 1
|
|
|
|
| 45 |
|
| 46 |
_AUDIO_DATA_URL = "https://poly-public-data.s3.eu-west-2.amazonaws.com/evi-paper/audios.zip" # noqa
|
| 47 |
|
| 48 |
+
_VERSION = datasets.Version("0.0.9", "")
|
| 49 |
|
| 50 |
|
| 51 |
class EviConfig(datasets.BuilderConfig):
|
|
|
|
| 98 |
"asr_nbest": datasets.Sequence(datasets.Value("string")),
|
| 99 |
#
|
| 100 |
"path": datasets.Value("string"),
|
| 101 |
+
#"audio": datasets.Audio(sampling_rate=8_000),
|
| 102 |
}
|
| 103 |
)
|
| 104 |
|
|
|
|
| 173 |
"asr_transcription": dictrow["transcription"],
|
| 174 |
"asr_nbest": json.loads(dictrow["nbest"]),
|
| 175 |
"path": file_path,
|
| 176 |
+
# "audio": file_path,
|
| 177 |
}
|
| 178 |
yield key, example
|
| 179 |
key += 1
|