Fix the class labels feature
Browse filesIt should fix the dataset viewer for the "source" config. See https://huggingface.co/datasets/bigscience-biomedical/geokhoj_v1/discussions/1#6392e9d34bca25f8ee0eae41
- geokhoj_v1.py +1 -1
geokhoj_v1.py
CHANGED
|
@@ -99,7 +99,7 @@ class Geokhojv1Dataset(datasets.GeneratorBasedBuilder):
|
|
| 99 |
{
|
| 100 |
"id": datasets.Value("string"),
|
| 101 |
"label": datasets.features.ClassLabel(
|
| 102 |
-
names=
|
| 103 |
),
|
| 104 |
"text": datasets.Value("string"),
|
| 105 |
}
|
|
|
|
| 99 |
{
|
| 100 |
"id": datasets.Value("string"),
|
| 101 |
"label": datasets.features.ClassLabel(
|
| 102 |
+
names=["control", "perturbation"]
|
| 103 |
),
|
| 104 |
"text": datasets.Value("string"),
|
| 105 |
}
|