Datasets:
Tasks:
Visual Question Answering
Formats:
parquet
Sub-tasks:
visual-question-answering
Languages:
English
Size:
100K - 1M
ArXiv:
License:
Commit
·
e3be5f3
1
Parent(s):
e0c9133
Support streaming compguesswhat dataset (#4968)
Browse filesCommit from https://github.com/huggingface/datasets/commit/37361fe06e5ab992de2f9674aed5ea13498ec351
- compguesswhat.py +4 -3
compguesswhat.py
CHANGED
@@ -248,6 +248,7 @@ class Compguesswhat(datasets.GeneratorBasedBuilder):
|
|
248 |
return game["id"], game
|
249 |
|
250 |
"""Yields examples."""
|
251 |
-
with
|
252 |
-
|
253 |
-
|
|
|
|
248 |
return game["id"], game
|
249 |
|
250 |
"""Yields examples."""
|
251 |
+
with open(filepath, "rb") as gzip_file:
|
252 |
+
with gzip.open(gzip_file) as in_file:
|
253 |
+
for data in in_file:
|
254 |
+
yield _extract_game_tuple(data)
|