Create my_dataset.py
Browse files- my_dataset.py +20 -0
my_dataset.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def _info(self):
|
2 |
+
return datasets.DatasetInfo(
|
3 |
+
description=_DESCRIPTION,
|
4 |
+
features=datasets.Features(
|
5 |
+
{
|
6 |
+
# "id": datasets.Value("string"),
|
7 |
+
# "title": datasets.Value("string"),
|
8 |
+
# "context": datasets.Value("string"),
|
9 |
+
# "question": datasets.Value("string"),
|
10 |
+
"train": datasets.features.Sequence(
|
11 |
+
{"image_path": datasets.Value("string"), "caption": datasets.Value("string"),}
|
12 |
+
),
|
13 |
+
}
|
14 |
+
),
|
15 |
+
# No default supervised_keys (as we have to pass both question
|
16 |
+
# and context as input).
|
17 |
+
supervised_keys=None,
|
18 |
+
homepage="https://huggingface.co/datasets/brathief/Alice_2/",
|
19 |
+
citation=_CITATION,
|
20 |
+
)
|