Datasets:
Tasks:
Image Classification
Modalities:
Image
Formats:
imagefolder
Languages:
Georgian
Size:
10K - 100K
Commit
•
ff4c5cb
1
Parent(s):
a6b9e4b
Update handwriting_dataset.py
Browse files- handwriting_dataset.py +1 -0
handwriting_dataset.py
CHANGED
@@ -48,6 +48,7 @@ class HandwritingData(datasets.GeneratorBasedBuilder):
|
|
48 |
# Iterate through images
|
49 |
for idx, filepath, image in enumerate(images):
|
50 |
# extract the text from the filename
|
|
|
51 |
text = [c for c in str(filepath) if not 0 <= ord(c) <= 127][0]
|
52 |
yield idx, {
|
53 |
"label": text,
|
|
|
48 |
# Iterate through images
|
49 |
for idx, filepath, image in enumerate(images):
|
50 |
# extract the text from the filename
|
51 |
+
logger.error(filepath)
|
52 |
text = [c for c in str(filepath) if not 0 <= ord(c) <= 127][0]
|
53 |
yield idx, {
|
54 |
"label": text,
|