Use Sequence for labels features

#1
Files changed (1) hide show
  1. 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": [datasets.ClassLabel(names=_CLASS_NAMES)],
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