Datasets:
rename captions
Browse files
TGIF.py
CHANGED
@@ -51,7 +51,7 @@ class TGIF(datasets.GeneratorBasedBuilder):
|
|
51 |
{
|
52 |
"video_path": datasets.Value("string"),
|
53 |
"video_bytes": datasets.Value("large_binary"),
|
54 |
-
"
|
55 |
}
|
56 |
),
|
57 |
supervised_keys=None,
|
@@ -116,5 +116,5 @@ class TGIF(datasets.GeneratorBasedBuilder):
|
|
116 |
yield idx, {
|
117 |
"video_path": video_link,
|
118 |
"video_bytes": video_bytes,
|
119 |
-
"
|
120 |
}
|
|
|
51 |
{
|
52 |
"video_path": datasets.Value("string"),
|
53 |
"video_bytes": datasets.Value("large_binary"),
|
54 |
+
"en_global_captions": datasets.features.Sequence(datasets.Value("string"))
|
55 |
}
|
56 |
),
|
57 |
supervised_keys=None,
|
|
|
116 |
yield idx, {
|
117 |
"video_path": video_link,
|
118 |
"video_bytes": video_bytes,
|
119 |
+
"en_global_captions": dict[video_link],
|
120 |
}
|