Datasets:
Update docci.py
Browse files
docci.py
CHANGED
@@ -42,7 +42,7 @@ _FEATURES_DOCCI = datasets.Features(
|
|
42 |
{
|
43 |
"image": datasets.Image(),
|
44 |
"example_id": datasets.Value('string'),
|
45 |
-
"description":
|
46 |
}
|
47 |
)
|
48 |
|
@@ -121,8 +121,6 @@ class DOCCI(datasets.GeneratorBasedBuilder):
|
|
121 |
if not (ex["split"] == "qual_test" and ex['example_id'].startswith("qual_test")):
|
122 |
continue
|
123 |
|
124 |
-
print(ex)
|
125 |
-
|
126 |
image_path = os.path.join(data["images"], ex["image_file"])
|
127 |
|
128 |
_ex = {
|
|
|
42 |
{
|
43 |
"image": datasets.Image(),
|
44 |
"example_id": datasets.Value('string'),
|
45 |
+
"description": datasets.Value('string'),
|
46 |
}
|
47 |
)
|
48 |
|
|
|
121 |
if not (ex["split"] == "qual_test" and ex['example_id'].startswith("qual_test")):
|
122 |
continue
|
123 |
|
|
|
|
|
124 |
image_path = os.path.join(data["images"], ex["image_file"])
|
125 |
|
126 |
_ex = {
|