Datasets:
Update docci.py
Browse files
docci.py
CHANGED
|
@@ -105,7 +105,7 @@ class DOCCI(datasets.GeneratorBasedBuilder):
|
|
| 105 |
|
| 106 |
def _generate_examples_docci(self, data, split):
|
| 107 |
with open(data["descriptions"], "r") as f:
|
| 108 |
-
examples = [json.loads(l.
|
| 109 |
|
| 110 |
for ex in annotations["images"]:
|
| 111 |
if split == "train":
|
|
|
|
| 105 |
|
| 106 |
def _generate_examples_docci(self, data, split):
|
| 107 |
with open(data["descriptions"], "r") as f:
|
| 108 |
+
examples = [json.loads(l.strip()) for l in f]
|
| 109 |
|
| 110 |
for ex in annotations["images"]:
|
| 111 |
if split == "train":
|