Use Sequence for labels features
#1
by
laiking
- opened
- hallmarks_of_cancer.py +1 -1
hallmarks_of_cancer.py
CHANGED
@@ -118,7 +118,7 @@ class HallmarksOfCancerDataset(datasets.GeneratorBasedBuilder):
|
|
118 |
{
|
119 |
"document_id": datasets.Value("string"),
|
120 |
"text": datasets.Value("string"),
|
121 |
-
"label":
|
122 |
}
|
123 |
)
|
124 |
|
|
|
118 |
{
|
119 |
"document_id": datasets.Value("string"),
|
120 |
"text": datasets.Value("string"),
|
121 |
+
"label": datasets.Sequence(datasets.ClassLabel(names=_CLASS_NAMES)),
|
122 |
}
|
123 |
)
|
124 |
|