Update PlotQA_dataset.py
Browse files- PlotQA_dataset.py +1 -1
PlotQA_dataset.py
CHANGED
|
@@ -139,7 +139,7 @@ class PlotQA(datasets.GeneratorBasedBuilder):
|
|
| 139 |
),
|
| 140 |
]
|
| 141 |
|
| 142 |
-
def find_qa(self, annotation_v1_path:str, annotation_v2_path:str, img_idx):
|
| 143 |
with open(annotation_v1_path, "r", encoding="utf-8") as v1:
|
| 144 |
data_v1 = json.load(v1)
|
| 145 |
|
|
|
|
| 139 |
),
|
| 140 |
]
|
| 141 |
|
| 142 |
+
def find_qa(self, annotation_v1_path:str, annotation_v2_path:str, img_idx:int):
|
| 143 |
with open(annotation_v1_path, "r", encoding="utf-8") as v1:
|
| 144 |
data_v1 = json.load(v1)
|
| 145 |
|