AnaChikashua commited on
Commit
5a578fe
1 Parent(s): fc48a92

Update handwriting_dataset.py

Browse files
Files changed (1) hide show
  1. handwriting_dataset.py +1 -1
handwriting_dataset.py CHANGED
@@ -51,6 +51,6 @@ class HandwritingData(datasets.GeneratorBasedBuilder):
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,
55
  "image": image
56
  }
 
51
  logger.error(filepath)
52
  text = [c for c in str(filepath) if not 0 <= ord(c) <= 127][0]
53
  yield idx, {
54
+ "label": str(idx)+'txt',
55
  "image": image
56
  }