File size: 1,430 Bytes
7338752
 
 
 
 
 
acd55f1
 
 
 
 
 
 
7338752
acd55f1
 
 
 
 
 
7338752
acd55f1
7338752
acd55f1
7338752
acd55f1
7338752
acd55f1
 
7338752
 
acd55f1
 
 
 
 
 
 
 
 
 
7338752
acd55f1
7338752
acd55f1
 
7338752
 
 
acd55f1
7338752
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

# Lint as: python3
"""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,
        )