Skip to content

Commit bf783f2

Browse files
committed
Minor fix
1 parent fd38197 commit bf783f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datasets/packaged_modules/folder_based_builder/folder_based_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def analyze(files_or_archives, downloaded_files_or_dirs, split):
217217
"label": datasets.ClassLabel(names=sorted(labels)),
218218
}
219219
)
220-
self.info.task_templates = [self.CLASSIFICATION_TASK]
220+
self.info.task_templates = [self.CLASSIFICATION_TASK.align_with_features(self.info.features)]
221221
else:
222222
self.info.features = datasets.Features({self.BASE_COLUMN_NAME: self.BASE_FEATURE})
223223

0 commit comments

Comments
 (0)