|
|
|
|
|
|
|
|
"""Indus Valley Script Character List :: compiled by Iravatham Mahadevan, published by Archaeological Survey of India :: targz dataset.""" |
|
|
|
|
|
import datasets |
|
|
|
|
|
_CITATION = """\ |
|
|
@InProceedings{huggingface:dataset, |
|
|
title = {IM-417 128x128 Indus Script Dataset}, |
|
|
author={storesource}, |
|
|
year={2024} |
|
|
} |
|
|
""" |
|
|
|
|
|
_DESCRIPTION = """ |
|
|
IM-417 128x128 Indus Script Dataset. |
|
|
Labels derived from Pages 32-34 |
|
|
From "The Indus Scripts: Texts, Concordance and Tables" |
|
|
Compiled by Iravatham Mahadevan, |
|
|
Published by Archaeological Survey of India (1977) |
|
|
""" |
|
|
_HOMEPAGE = "https://huggingface.co/datasets/tomeheya/IM-417-128" |
|
|
|
|
|
_LICENSE = "" |
|
|
|
|
|
_REPO = "https://huggingface.co/datasets/tomeheya/IM-417-128" |
|
|
|
|
|
class ImageSet(datasets.GeneratorBasedBuilder): |
|
|
"""Small sample of image-text pairs""" |
|
|
|
|
|
def _info(self): |
|
|
def extract_features(example): |
|
|
text = example["__key__"] |
|
|
image = example["png"] |
|
|
return { |
|
|
"text": text, |
|
|
"image": image, |
|
|
} |
|
|
|
|
|
dataset = dataset.map(extract_features) |
|
|
dataset_info = DatasetInfo( |
|
|
description=_DESCRIPTION, |
|
|
features=Dataset.features( |
|
|
{ |
|
|
"sign_label": Value("string"), |
|
|
"image": Image(), |
|
|
} |
|
|
), |
|
|
supervised_keys=None, |
|
|
homepage=_HOMEPAGE, |
|
|
citation=_CITATION, |
|
|
) |
|
|
|