try catch
Browse files
NLVR2.py
CHANGED
|
@@ -107,5 +107,8 @@ class NLVR2Dataset(datasets.GeneratorBasedBuilder):
|
|
| 107 |
"right_image": str(ex["right_url"]),
|
| 108 |
"label": ex["label"],
|
| 109 |
}
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
"right_image": str(ex["right_url"]),
|
| 108 |
"label": ex["label"],
|
| 109 |
}
|
| 110 |
+
try:
|
| 111 |
+
idx += 1
|
| 112 |
+
yield idx, record
|
| 113 |
+
except Exception:
|
| 114 |
+
pass
|