Fixing bugs (loading swiss_law_area and swiss_judgment_xl dataset)
Browse files- lextreme.py +3 -2
lextreme.py
CHANGED
@@ -200,6 +200,7 @@ _SWISS_CRITICLALITY_PREDICTION_CITATION_CONSIDERATIONS = {
|
|
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",
|
@@ -230,7 +231,7 @@ _SWISS_LAW_AREA_PREDICTION_FACTS = {
|
|
230 |
"""
|
231 |
,
|
232 |
"citation": """TODO add citation""",
|
233 |
-
"label_classes": ["
|
234 |
}
|
235 |
|
236 |
_SWISS_LAW_AREA_PREDICTION_CONSIDERATIONS = {
|
@@ -241,7 +242,7 @@ _SWISS_LAW_AREA_PREDICTION_CONSIDERATIONS = {
|
|
241 |
_SWISS_LAW_AREA_PREDICTION_CIVIL_FACTS = {
|
242 |
**_SWISS_LAW_AREA_PREDICTION_FACTS,
|
243 |
"config_name": "civil",
|
244 |
-
"label_col": "
|
245 |
"label_classes": ['Rental and Lease', 'Employment Contract', 'Bankruptcy', 'Family', 'Competition and Antitrust', 'Intellectual Property']
|
246 |
}
|
247 |
|
|
|
200 |
_SWISS_JUDGMENT_PREDICTION_XL_FACTS = {
|
201 |
"task_type": TaskType.SLTC,
|
202 |
"hf_hub_name": "rcds/swiss_judgment_prediction_xl",
|
203 |
+
"config_name": "full",
|
204 |
"input_col": "facts",
|
205 |
"label_col": "label",
|
206 |
"url": "https://huggingface.co/datasets/rcds/swiss_judgment_prediction_xl",
|
|
|
231 |
"""
|
232 |
,
|
233 |
"citation": """TODO add citation""",
|
234 |
+
"label_classes": ["Civil", "Public", "Criminal", "Social"],
|
235 |
}
|
236 |
|
237 |
_SWISS_LAW_AREA_PREDICTION_CONSIDERATIONS = {
|
|
|
242 |
_SWISS_LAW_AREA_PREDICTION_CIVIL_FACTS = {
|
243 |
**_SWISS_LAW_AREA_PREDICTION_FACTS,
|
244 |
"config_name": "civil",
|
245 |
+
"label_col": "label",
|
246 |
"label_classes": ['Rental and Lease', 'Employment Contract', 'Bankruptcy', 'Family', 'Competition and Antitrust', 'Intellectual Property']
|
247 |
}
|
248 |
|