DykeF commited on
Commit
c52b098
·
1 Parent(s): 01c6f12

Update NCTCRCHE100K.py

Browse files
Files changed (1) hide show
  1. NCTCRCHE100K.py +2 -2
NCTCRCHE100K.py CHANGED
@@ -36,7 +36,7 @@ class NCTCRCHE100K(datasets.GeneratorBasedBuilder):
36
  features=datasets.Features(
37
  {
38
  "image": datasets.Image(),
39
- "labels": datasets.Value("string"),
40
  }
41
  ),
42
 
@@ -65,6 +65,6 @@ class NCTCRCHE100K(datasets.GeneratorBasedBuilder):
65
  end_index = filepath.find('-', start_index)
66
  yield idx, {
67
  "image": {"path": filepath, "bytes": image.read()},
68
- "labels": filepath[start_index: end_index]
69
  }
70
  idx += 1
 
36
  features=datasets.Features(
37
  {
38
  "image": datasets.Image(),
39
+ "label": datasets.Value("string"),
40
  }
41
  ),
42
 
 
65
  end_index = filepath.find('-', start_index)
66
  yield idx, {
67
  "image": {"path": filepath, "bytes": image.read()},
68
+ "label": filepath[start_index: end_index]
69
  }
70
  idx += 1