Datasets:
BNNT
/

Modalities:
Text
Formats:
json
Libraries:
Datasets
Dask
License:
visualjoyce commited on
Commit
5cef1d2
1 Parent(s): f9abc3a

fix download

Browse files
Files changed (1) hide show
  1. ipquiz.py +3 -3
ipquiz.py CHANGED
@@ -83,7 +83,7 @@ class IPQuizDataset(datasets.GeneratorBasedBuilder):
83
  {
84
  "language": datasets.Value("string"),
85
  "problem": datasets.Value("string"),
86
- "candidates": datasets.features.Sequence(
87
  {
88
  "texts": datasets.Value("string"),
89
  "options": datasets.Value("string"),
@@ -120,11 +120,11 @@ class IPQuizDataset(datasets.GeneratorBasedBuilder):
120
  downloaded_files = dl_manager.download(_URLS)
121
  return [
122
  datasets.SplitGenerator(
123
- name=self.config.name,
124
  # These kwargs will be passed to _generate_examples
125
  gen_kwargs={
126
  "filepath": downloaded_files[self.config.name],
127
- "split": self.config.name
128
  },
129
  ),
130
  ]
 
83
  {
84
  "language": datasets.Value("string"),
85
  "problem": datasets.Value("string"),
86
+ "candidates": datasets.Sequence(
87
  {
88
  "texts": datasets.Value("string"),
89
  "options": datasets.Value("string"),
 
120
  downloaded_files = dl_manager.download(_URLS)
121
  return [
122
  datasets.SplitGenerator(
123
+ name=datasets.Split.TRAIN,
124
  # These kwargs will be passed to _generate_examples
125
  gen_kwargs={
126
  "filepath": downloaded_files[self.config.name],
127
+ "split": 'train'
128
  },
129
  ),
130
  ]