Georgios Spithourakis commited on
Commit ·
1b529bb
1
Parent(s): 6bbc562
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):
|
|
@@ -162,8 +162,8 @@ class Evi(datasets.GeneratorBasedBuilder):
|
|
| 162 |
dialogue_id,
|
| 163 |
f'{turn_id}.wav'
|
| 164 |
)
|
| 165 |
-
if not os.path.isfile(file_path):
|
| 166 |
-
|
| 167 |
example = {
|
| 168 |
"lang_id": _ALL_CONFIGS.index(lang),
|
| 169 |
"dialogue_id": dialogue_id,
|
|
@@ -175,7 +175,6 @@ class Evi(datasets.GeneratorBasedBuilder):
|
|
| 175 |
"path": file_path,
|
| 176 |
"audio": file_path,
|
| 177 |
}
|
| 178 |
-
print(example)
|
| 179 |
yield key, example
|
| 180 |
key += 1
|
| 181 |
|
|
|
|
| 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.8", "")
|
| 49 |
|
| 50 |
|
| 51 |
class EviConfig(datasets.BuilderConfig):
|
|
|
|
| 162 |
dialogue_id,
|
| 163 |
f'{turn_id}.wav'
|
| 164 |
)
|
| 165 |
+
# if not os.path.isfile(file_path):
|
| 166 |
+
# file_path = None
|
| 167 |
example = {
|
| 168 |
"lang_id": _ALL_CONFIGS.index(lang),
|
| 169 |
"dialogue_id": dialogue_id,
|
|
|
|
| 175 |
"path": file_path,
|
| 176 |
"audio": file_path,
|
| 177 |
}
|
|
|
|
| 178 |
yield key, example
|
| 179 |
key += 1
|
| 180 |
|