Datasets:
rcds
/

ninabaum commited on
Commit
235eb4f
1 Parent(s): 3289f4f

Update occlusion_swiss_judgment_prediction.py

Browse files
occlusion_swiss_judgment_prediction.py CHANGED
@@ -97,42 +97,38 @@ class OcclusionSwissJudgmentPrediction(datasets.GeneratorBasedBuilder):
97
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
98
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
99
  urls = _URLS[self.config.name]
100
- filepath_test_1 = dl_manager.download(os.path.join(urls, "test_occ_1.jsonl.xz"))
101
- filepath_test_2 = dl_manager.download(os.path.join(urls, "test_occ_2.jsonl.xz"))
102
- filepath_test_3 = dl_manager.download(os.path.join(urls, "test_occ_3.jsonl.xz"))
103
- filepath_test_4 = dl_manager.download(os.path.join(urls, "test_occ_4.jsonl.xz"))
104
 
105
  return [
106
  datasets.SplitGenerator(
107
- name=datasets.Split.TEST,
108
  # These kwargs will be passed to _generate_examples
109
  gen_kwargs={
110
- "filepath": filepath_test_1,
111
- "split": "test_1"
112
  },
113
  ),
114
  datasets.SplitGenerator(
115
- name=datasets.Split.TEST,
116
  # These kwargs will be passed to _generate_examples
117
  gen_kwargs={
118
  "filepath": filepath_test_2,
119
- "split": "test_2"
120
  },
121
  ),
122
  datasets.SplitGenerator(
123
- name=datasets.Split.TEST,
124
  # These kwargs will be passed to _generate_examples
125
  gen_kwargs={
126
- "filepath": filepath_test_3,
127
- "split": "test_3"
128
  },
129
  ),
130
  datasets.SplitGenerator(
131
- name=datasets.Split.TEST,
132
  # These kwargs will be passed to _generate_examples
133
  gen_kwargs={
134
  "filepath": filepath_test_4,
135
- "split": "test_4"
136
  },
137
  )
138
  ]
 
97
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
98
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
99
  urls = _URLS[self.config.name]
100
+ filepath_test_1 = dl_manager.download(os.path.join(urls, "data/test_occ_1.jsonl.xz"))
101
+ filepath_test_2 = dl_manager.download(os.path.join(urls, "data/test_occ_2.jsonl.xz"))
102
+ filepath_test_3 = dl_manager.download(os.path.join(urls, "data/test_occ_3.jsonl.xz"))
103
+ filepath_test_4 = dl_manager.download(os.path.join(urls, "data/test_occ_4.jsonl.xz"))
104
 
105
  return [
106
  datasets.SplitGenerator(
107
+ name="test_1",
108
  # These kwargs will be passed to _generate_examples
109
  gen_kwargs={
110
+ "filepath": filepath_test_1
 
111
  },
112
  ),
113
  datasets.SplitGenerator(
114
+ name="test_2",
115
  # These kwargs will be passed to _generate_examples
116
  gen_kwargs={
117
  "filepath": filepath_test_2,
 
118
  },
119
  ),
120
  datasets.SplitGenerator(
121
+ name="test_3",
122
  # These kwargs will be passed to _generate_examples
123
  gen_kwargs={
124
+ "filepath": filepath_test_3
 
125
  },
126
  ),
127
  datasets.SplitGenerator(
128
+ name="test_4",
129
  # These kwargs will be passed to _generate_examples
130
  gen_kwargs={
131
  "filepath": filepath_test_4,
 
132
  },
133
  )
134
  ]