Datasets:
Update docci.py
Browse files
docci.py
CHANGED
|
@@ -36,7 +36,9 @@ _URLS = {
|
|
| 36 |
"images": _URL + "docci_images.tar.gz",
|
| 37 |
}
|
| 38 |
|
| 39 |
-
_URL_AAR =
|
|
|
|
|
|
|
| 40 |
|
| 41 |
_FEATURES_DOCCI = datasets.Features(
|
| 42 |
{
|
|
@@ -134,7 +136,6 @@ class DOCCI(datasets.GeneratorBasedBuilder):
|
|
| 134 |
yield _ex["example_id"], _ex
|
| 135 |
|
| 136 |
def _generate_examples_docci_aar(self, data, split):
|
| 137 |
-
print(data)
|
| 138 |
image_files = glob.glob(data["images"])
|
| 139 |
|
| 140 |
for image_path in image_files:
|
|
|
|
| 36 |
"images": _URL + "docci_images.tar.gz",
|
| 37 |
}
|
| 38 |
|
| 39 |
+
_URL_AAR = {
|
| 40 |
+
"images": _URL + "docci_images_aar.tar.gz"
|
| 41 |
+
}
|
| 42 |
|
| 43 |
_FEATURES_DOCCI = datasets.Features(
|
| 44 |
{
|
|
|
|
| 136 |
yield _ex["example_id"], _ex
|
| 137 |
|
| 138 |
def _generate_examples_docci_aar(self, data, split):
|
|
|
|
| 139 |
image_files = glob.glob(data["images"])
|
| 140 |
|
| 141 |
for image_path in image_files:
|