Datasets:
Tasks:
Image Classification
Modalities:
Image
Formats:
imagefolder
Languages:
Georgian
Size:
10K - 100K
AnaChikashua
commited on
Commit
•
e34a884
1
Parent(s):
e7c3106
Update handwriting_dataset.py
Browse files- handwriting_dataset.py +6 -4
handwriting_dataset.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import datasets
|
2 |
-
|
3 |
logger = datasets.logging.get_logger(__name__)
|
4 |
|
5 |
_CITATION = """\
|
@@ -22,12 +22,14 @@ class HandwritingData(datasets.GeneratorBasedBuilder):
|
|
22 |
citation=_CITATION,
|
23 |
features=datasets.Features(
|
24 |
{"text": datasets.Value("string"),
|
25 |
-
"
|
26 |
"image": datasets.Image()
|
27 |
}
|
28 |
),
|
29 |
-
supervised_keys=
|
30 |
-
homepage="https://huggingface.co/datasets/AnaChikashua/handwriting"
|
|
|
|
|
31 |
)
|
32 |
|
33 |
def _split_generators(self, dl_manager):
|
|
|
1 |
import datasets
|
2 |
+
_NAMES = ['ა', 'ბ', 'გ', 'დ', 'ე', 'ვ', 'ზ', 'თ', 'ი', 'კ', 'ლ', 'მ', 'ნ', 'ო', 'პ', 'ჟ', 'რ', 'ს', 'ტ', 'უ', 'ფ', 'ქ', 'ღ', 'ყ', 'შ', 'ჩ', 'ც', 'ძ', 'წ', 'ჭ', 'ხ', 'ჯ', 'ჰ']
|
3 |
logger = datasets.logging.get_logger(__name__)
|
4 |
|
5 |
_CITATION = """\
|
|
|
22 |
citation=_CITATION,
|
23 |
features=datasets.Features(
|
24 |
{"text": datasets.Value("string"),
|
25 |
+
"label": datasets.ClassLabel(names=_NAMES),
|
26 |
"image": datasets.Image()
|
27 |
}
|
28 |
),
|
29 |
+
supervised_keys=("image", "label"),
|
30 |
+
homepage="https://huggingface.co/datasets/AnaChikashua/handwriting",
|
31 |
+
task_templates=[datasets.ImageClassification(image_column="image", label_column="label")],
|
32 |
+
|
33 |
)
|
34 |
|
35 |
def _split_generators(self, dl_manager):
|