fix example generation
#5
by
giu-alb
- opened
something_something_v2.py
CHANGED
@@ -156,8 +156,8 @@ class SomethingSomethingV2(datasets.GeneratorBasedBuilder):
|
|
156 |
"video_id": video_id,
|
157 |
"video": file,
|
158 |
"placeholders": info.get("placeholders", []),
|
159 |
-
"label": info["
|
160 |
-
"text": info["
|
161 |
}
|
162 |
|
163 |
idx += 1
|
|
|
156 |
"video_id": video_id,
|
157 |
"video": file,
|
158 |
"placeholders": info.get("placeholders", []),
|
159 |
+
"label": info["template"],
|
160 |
+
"text": info["label"] if "label" in info else -1,
|
161 |
}
|
162 |
|
163 |
idx += 1
|