Datasets:
Tasks:
Image Classification
Modalities:
Image
Formats:
imagefolder
Languages:
Georgian
Size:
10K - 100K
Commit
·
f5315f8
1
Parent(s):
35d37c3
Update handwriting_dataset.py
Browse files- handwriting_dataset.py +1 -1
handwriting_dataset.py
CHANGED
@@ -50,6 +50,6 @@ class HandwritingData(datasets.GeneratorBasedBuilder):
|
|
50 |
text = [c for c in filepath if not 0 <= ord(c) <= 127][0]
|
51 |
yield idx, {
|
52 |
"text": str(filepath),
|
53 |
-
"
|
54 |
"image": {"path": filepath, "bytes": image.read()}
|
55 |
}
|
|
|
50 |
text = [c for c in filepath if not 0 <= ord(c) <= 127][0]
|
51 |
yield idx, {
|
52 |
"text": str(filepath),
|
53 |
+
"label": str(idx),
|
54 |
"image": {"path": filepath, "bytes": image.read()}
|
55 |
}
|