Update lextreme.py
#13
by
Stern5497
- opened
- lextreme.py +91 -2
lextreme.py
CHANGED
@@ -164,9 +164,9 @@ _SWISS_JUDGMENT_PREDICTION = {
|
|
164 |
|
165 |
_SWISS_CRITICLALITY_PREDICTION_BGE_FACTS = {
|
166 |
"task_type": TaskType.SLTC,
|
167 |
-
"hf_hub_name": "rcds/
|
168 |
"config_name": "full",
|
169 |
-
"url": "https://huggingface.co/datasets/rcds/
|
170 |
"input_col": "facts",
|
171 |
"label_col": "bge_label",
|
172 |
"description":
|
@@ -197,6 +197,85 @@ _SWISS_CRITICLALITY_PREDICTION_CITATION_CONSIDERATIONS = {
|
|
197 |
"label_classes": ["critical-1", "critical-2", "critical-3", "critical-4"],
|
198 |
}
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
_GERMAN_ARGUMENT_MINING = {
|
201 |
"task_type": TaskType.SLTC,
|
202 |
"hf_hub_name": "joelito/german_argument_mining",
|
@@ -4093,6 +4172,16 @@ class LEXTREME(datasets.GeneratorBasedBuilder):
|
|
4093 |
LextremeConfig(name="swiss_criticality_prediction_bge_considerations", **_SWISS_CRITICLALITY_PREDICTION_BGE_CONSIDERATIONS),
|
4094 |
LextremeConfig(name="swiss_criticality_prediction_citation_facts", **_SWISS_CRITICLALITY_PREDICTION_CITATION_FACTS),
|
4095 |
LextremeConfig(name="swiss_criticality_prediction_citation_considerations", **_SWISS_CRITICLALITY_PREDICTION_CITATION_CONSIDERATIONS),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4096 |
|
4097 |
# MLTC tasks
|
4098 |
LextremeConfig(name="online_terms_of_service_clause_topics", **_ONLINE_TERMS_OF_SERVICE_CLAUSE_TOPICS),
|
|
|
164 |
|
165 |
_SWISS_CRITICLALITY_PREDICTION_BGE_FACTS = {
|
166 |
"task_type": TaskType.SLTC,
|
167 |
+
"hf_hub_name": "rcds/swiss_criticality_prediction",
|
168 |
"config_name": "full",
|
169 |
+
"url": "https://huggingface.co/datasets/rcds/swiss_criticality_prediction",
|
170 |
"input_col": "facts",
|
171 |
"label_col": "bge_label",
|
172 |
"description":
|
|
|
197 |
"label_classes": ["critical-1", "critical-2", "critical-3", "critical-4"],
|
198 |
}
|
199 |
|
200 |
+
_SWISS_JUDGMENT_PREDICTION_XL_FACTS = {
|
201 |
+
"task_type": TaskType.SLTC,
|
202 |
+
"hf_hub_name": "rcds/swiss_judgment_prediction_xl",
|
203 |
+
"input_col": "facts",
|
204 |
+
"label_col": "label",
|
205 |
+
"url": "https://huggingface.co/datasets/rcds/swiss_judgment_prediction_xl",
|
206 |
+
"description":
|
207 |
+
"""
|
208 |
+
Swiss-Judgment-Prediction is a multilingual, diachronic dataset Swiss Court cases annotated with the respective binarized judgment outcome (approval/dismissal), posing a challenging text classification task.
|
209 |
+
"""
|
210 |
+
,
|
211 |
+
"citation": """TODO add citation""",
|
212 |
+
"label_classes": ["dismissal", "approval"],
|
213 |
+
}
|
214 |
+
|
215 |
+
_SWISS_JUDGMENT_PREDICTION_XL_CONSIDERATIONS = {
|
216 |
+
**_SWISS_JUDGMENT_PREDICTION_XL_FACTS,
|
217 |
+
"input_col": "considerations",
|
218 |
+
}
|
219 |
+
|
220 |
+
_SWISS_LAW_AREA_PREDICTION_FACTS = {
|
221 |
+
"task_type": TaskType.SLTC,
|
222 |
+
"hf_hub_name": "rcds/swiss_law_area_prediction",
|
223 |
+
"url": "https://huggingface.co/datasets/rcds/swiss_law_area_prediction",
|
224 |
+
"input_col": "facts",
|
225 |
+
"label_col": "label",
|
226 |
+
"config_name": "main",
|
227 |
+
"description":
|
228 |
+
"""
|
229 |
+
Law Area Prediction is a multilingual, diachronic dataset of Swiss Court (FSCS) cases annotated with a law area.
|
230 |
+
"""
|
231 |
+
,
|
232 |
+
"citation": """TODO add citation""",
|
233 |
+
"label_classes": ["civil", "public", "criminal"],
|
234 |
+
}
|
235 |
+
|
236 |
+
_SWISS_LAW_AREA_PREDICTION_CONSIDERATIONS = {
|
237 |
+
**_SWISS_LAW_AREA_PREDICTION_FACTS,
|
238 |
+
"input_col": "considerations",
|
239 |
+
}
|
240 |
+
|
241 |
+
_SWISS_LAW_AREA_PREDICTION_CIVIL_FACTS = {
|
242 |
+
**_SWISS_LAW_AREA_PREDICTION_FACTS,
|
243 |
+
"config_name": "civil",
|
244 |
+
"label_col": "law_area",
|
245 |
+
"label_classes": ['Rental and Lease', 'Employment Contract', 'Bankruptcy', 'Family', 'Competition and Antitrust', 'Intellectual Property']
|
246 |
+
}
|
247 |
+
|
248 |
+
_SWISS_LAW_AREA_PREDICTION_CRIMINAL_FACTS = {
|
249 |
+
**_SWISS_LAW_AREA_PREDICTION_CIVIL_FACTS,
|
250 |
+
"config_name": "criminal",
|
251 |
+
"label_classes": ['Substantive Criminal', 'Criminal Procedure']
|
252 |
+
}
|
253 |
+
|
254 |
+
_SWISS_LAW_AREA_PREDICTION_PUBLIC_FACTS = {
|
255 |
+
**_SWISS_LAW_AREA_PREDICTION_CIVIL_FACTS,
|
256 |
+
"config_name": "public",
|
257 |
+
"label_classes": ['Tax', 'Urban Planning and Environmental', 'Expropriation', 'Public Administration', 'Other Fiscal']
|
258 |
+
}
|
259 |
+
|
260 |
+
_SWISS_LAW_AREA_PREDICTION_CIVIL_CONSIDERATIONS = {
|
261 |
+
**_SWISS_LAW_AREA_PREDICTION_CIVIL_FACTS,
|
262 |
+
"input_col": "considerations",
|
263 |
+
}
|
264 |
+
|
265 |
+
_SWISS_LAW_AREA_PREDICTION_CRIMINAL_CONSIDERATIONS = {
|
266 |
+
**_SWISS_LAW_AREA_PREDICTION_CIVIL_FACTS,
|
267 |
+
"config_name": "criminal",
|
268 |
+
"input_col": "considerations",
|
269 |
+
"label_classes": ['Substantive Criminal', 'Criminal Procedure']
|
270 |
+
}
|
271 |
+
|
272 |
+
_SWISS_LAW_AREA_PREDICTION_PUBLIC_CONSIDERATIONS = {
|
273 |
+
**_SWISS_LAW_AREA_PREDICTION_CIVIL_FACTS,
|
274 |
+
"config_name": "public",
|
275 |
+
"input_col": "considerations",
|
276 |
+
"label_classes": ['Tax', 'Urban Planning and Environmental', 'Expropriation', 'Public Administration', 'Other Fiscal']
|
277 |
+
}
|
278 |
+
|
279 |
_GERMAN_ARGUMENT_MINING = {
|
280 |
"task_type": TaskType.SLTC,
|
281 |
"hf_hub_name": "joelito/german_argument_mining",
|
|
|
4172 |
LextremeConfig(name="swiss_criticality_prediction_bge_considerations", **_SWISS_CRITICLALITY_PREDICTION_BGE_CONSIDERATIONS),
|
4173 |
LextremeConfig(name="swiss_criticality_prediction_citation_facts", **_SWISS_CRITICLALITY_PREDICTION_CITATION_FACTS),
|
4174 |
LextremeConfig(name="swiss_criticality_prediction_citation_considerations", **_SWISS_CRITICLALITY_PREDICTION_CITATION_CONSIDERATIONS),
|
4175 |
+
LextremeConfig(name="swiss_law_area_prediction_facts", **_SWISS_LAW_AREA_PREDICTION_FACTS),
|
4176 |
+
LextremeConfig(name="swiss_law_area_prediction_considerations", **_SWISS_LAW_AREA_PREDICTION_CONSIDERATIONS),
|
4177 |
+
LextremeConfig(name="swiss_law_area_prediction_civil_facts", **_SWISS_LAW_AREA_PREDICTION_CIVIL_FACTS),
|
4178 |
+
LextremeConfig(name="swiss_law_area_prediction_civil_considerations", **_SWISS_LAW_AREA_PREDICTION_CIVIL_CONSIDERATIONS),
|
4179 |
+
LextremeConfig(name="swiss_law_area_prediction_criminal_facts", **_SWISS_LAW_AREA_PREDICTION_CRIMINAL_FACTS),
|
4180 |
+
LextremeConfig(name="swiss_law_area_prediction_criminal_considerations", **_SWISS_LAW_AREA_PREDICTION_CRIMINAL_CONSIDERATIONS),
|
4181 |
+
LextremeConfig(name="swiss_law_area_prediction_public_facts", **_SWISS_LAW_AREA_PREDICTION_PUBLIC_FACTS),
|
4182 |
+
LextremeConfig(name="swiss_law_area_prediction_public_considerations", **_SWISS_LAW_AREA_PREDICTION_PUBLIC_CONSIDERATIONS),
|
4183 |
+
LextremeConfig(name="swiss_judgment_prediction_xl_facts", **_SWISS_JUDGMENT_PREDICTION_XL_FACTS),
|
4184 |
+
LextremeConfig(name="swiss_judgment_prediction_xl_considerations", **_SWISS_JUDGMENT_PREDICTION_XL_CONSIDERATIONS),
|
4185 |
|
4186 |
# MLTC tasks
|
4187 |
LextremeConfig(name="online_terms_of_service_clause_topics", **_ONLINE_TERMS_OF_SERVICE_CLAUSE_TOPICS),
|