Alice_2 / my_dataset.py
brathief's picture
Create my_dataset.py
ab62ec6
raw
history blame
781 Bytes
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=datasets.Features(
{
# "id": datasets.Value("string"),
# "title": datasets.Value("string"),
# "context": datasets.Value("string"),
# "question": datasets.Value("string"),
"train": datasets.features.Sequence(
{"image_path": datasets.Value("string"), "caption": datasets.Value("string"),}
),
}
),
# No default supervised_keys (as we have to pass both question
# and context as input).
supervised_keys=None,
homepage="https://huggingface.co/datasets/brathief/Alice_2/",
citation=_CITATION,
)