Update NCTCRCHE100K.py
Browse files- 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 |
-
"
|
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 |
-
"
|
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
|