Update M3Retrieve.py
Browse files- M3Retrieve.py +15 -15
M3Retrieve.py
CHANGED
|
@@ -61,21 +61,21 @@ class M3Retrieve(datasets.GeneratorBasedBuilder):
|
|
| 61 |
# )
|
| 62 |
|
| 63 |
def _info(self):
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
|
| 80 |
|
| 81 |
def _split_generators(self, dl_manager):
|
|
|
|
| 61 |
# )
|
| 62 |
|
| 63 |
def _info(self):
|
| 64 |
+
return datasets.DatasetInfo(
|
| 65 |
+
description="M3Retrieve: Benchmarking Multimodal Retrieval for Medicine",
|
| 66 |
+
features=datasets.Features(
|
| 67 |
+
{
|
| 68 |
+
"_id": datasets.Value("string"),
|
| 69 |
+
"caption": datasets.Value("string"),
|
| 70 |
+
"image_path": datasets.Value("string"),
|
| 71 |
+
"text": datasets.Value("string"),
|
| 72 |
+
"query-id": datasets.Value("string"),
|
| 73 |
+
"corpus-id": datasets.Value("string"),
|
| 74 |
+
"score": datasets.Value("float32"),
|
| 75 |
+
}
|
| 76 |
+
),
|
| 77 |
+
supervised_keys=None,
|
| 78 |
+
)
|
| 79 |
|
| 80 |
|
| 81 |
def _split_generators(self, dl_manager):
|