Datasets:
Add Ukrainian court decisions judgment prediction subset
#16
by overthelex - opened
- README.md +4 -2
- lextreme.py +52 -0
README.md
CHANGED
|
@@ -28,6 +28,7 @@ language:
|
|
| 28 |
- sk
|
| 29 |
- sl
|
| 30 |
- sv
|
|
|
|
| 31 |
license:
|
| 32 |
- cc-by-4.0
|
| 33 |
multilinguality:
|
|
@@ -87,7 +88,7 @@ task_ids:
|
|
| 87 |
|
| 88 |
### Dataset Summary
|
| 89 |
|
| 90 |
-
The dataset consists of
|
| 91 |
|
| 92 |
Use the dataset like this:
|
| 93 |
```python
|
|
@@ -114,11 +115,12 @@ In detail, we support the folliwing tasks and configurations:
|
|
| 114 |
| LegalNERo | Named Entity Recognition | default | [legalnero](https://huggingface.co/datasets/joelito/legalnero) |
|
| 115 |
| Greek Legal NER | Named Entity Recognition | default | [greek_legal_ner](https://huggingface.co/datasets/joelito/greek_legal_ner) |
|
| 116 |
| MAPA | Named Entity Recognition | (coarse, fine) | [mapa](https://huggingface.co/datasets/joelito/mapa) |
|
|
|
|
| 117 |
|
| 118 |
|
| 119 |
### Languages
|
| 120 |
|
| 121 |
-
The following languages are supported: bg
|
| 122 |
|
| 123 |
## Dataset Structure
|
| 124 |
|
|
|
|
| 28 |
- sk
|
| 29 |
- sl
|
| 30 |
- sv
|
| 31 |
+
- uk
|
| 32 |
license:
|
| 33 |
- cc-by-4.0
|
| 34 |
multilinguality:
|
|
|
|
| 88 |
|
| 89 |
### Dataset Summary
|
| 90 |
|
| 91 |
+
The dataset consists of 12 diverse multilingual legal NLU datasets. 6 datasets have one single configuration, 5 datasets have two or three configurations, and 1 dataset has three temporal epoch configurations. This leads to a total of 21 tasks (11 single-label text classification tasks, 5 multi-label text classification tasks and 5 token-classification tasks).
|
| 92 |
|
| 93 |
Use the dataset like this:
|
| 94 |
```python
|
|
|
|
| 115 |
| LegalNERo | Named Entity Recognition | default | [legalnero](https://huggingface.co/datasets/joelito/legalnero) |
|
| 116 |
| Greek Legal NER | Named Entity Recognition | default | [greek_legal_ner](https://huggingface.co/datasets/joelito/greek_legal_ner) |
|
| 117 |
| MAPA | Named Entity Recognition | (coarse, fine) | [mapa](https://huggingface.co/datasets/joelito/mapa) |
|
| 118 |
+
| Ukrainian Court Decisions | Judgment Prediction | (pre_war, hybrid_war, full_scale) | [overthelex/ukrainian-court-decisions](https://huggingface.co/datasets/overthelex/ukrainian-court-decisions) |
|
| 119 |
|
| 120 |
|
| 121 |
### Languages
|
| 122 |
|
| 123 |
+
The following languages are supported: bg, cs, da, de, el, en, es, et, fi, fr, ga, hr, hu, it, lt, lv, mt, nl, pl, pt, ro, sk, sl, sv, uk
|
| 124 |
|
| 125 |
## Dataset Structure
|
| 126 |
|
lextreme.py
CHANGED
|
@@ -4101,6 +4101,55 @@ _MAPA_FINE = {
|
|
| 4101 |
}
|
| 4102 |
|
| 4103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4104 |
_TURKISH_CONSTITUTIONAL_COURT_DECISIONS_JUDGMENT = {
|
| 4105 |
"task_type": TaskType.SLTC,
|
| 4106 |
"hf_hub_name": "KocLab-Bilkent/turkish-constitutional-court",
|
|
@@ -4141,6 +4190,9 @@ class LEXTREME(datasets.GeneratorBasedBuilder):
|
|
| 4141 |
LextremeConfig(name="greek_legal_code_chapter", **_GREEK_LEGAL_CODE_CHAPTER),
|
| 4142 |
LextremeConfig(name="greek_legal_code_subject", **_GREEK_LEGAL_CODE_SUBJECT),
|
| 4143 |
LextremeConfig(name="online_terms_of_service_unfairness_levels", **_ONLINE_TERMS_OF_SERVICE_UNFAIRNESS_LEVELS),
|
|
|
|
|
|
|
|
|
|
| 4144 |
LextremeConfig(name="turkish_constitutional_court_decisions_judgment", **_TURKISH_CONSTITUTIONAL_COURT_DECISIONS_JUDGMENT),
|
| 4145 |
LextremeConfig(name="swiss_criticality_prediction_bge_facts", **_SWISS_CRITICLALITY_PREDICTION_BGE_FACTS),
|
| 4146 |
LextremeConfig(name="swiss_criticality_prediction_bge_considerations", **_SWISS_CRITICLALITY_PREDICTION_BGE_CONSIDERATIONS),
|
|
|
|
| 4101 |
}
|
| 4102 |
|
| 4103 |
|
| 4104 |
+
_UKRAINIAN_COURT_DECISIONS_JUDGMENT = {
|
| 4105 |
+
"task_type": TaskType.SLTC,
|
| 4106 |
+
"hf_hub_name": "overthelex/ukrainian-court-decisions",
|
| 4107 |
+
"language": "uk",
|
| 4108 |
+
"input_col": "text",
|
| 4109 |
+
"label_col": "label",
|
| 4110 |
+
"url": "https://reyestr.court.gov.ua/",
|
| 4111 |
+
"citation":
|
| 4112 |
+
"""
|
| 4113 |
+
@misc{ovcharov2025ukrainian,
|
| 4114 |
+
title = {{Ukrainian Court Decisions Dataset for Judgment Prediction}},
|
| 4115 |
+
author = {Ovcharov, Volodymyr},
|
| 4116 |
+
year = {2025},
|
| 4117 |
+
url = {https://huggingface.co/datasets/overthelex/ukrainian-court-decisions},
|
| 4118 |
+
note = {Extracted from the State Court Decisions Registry of Ukraine (ЄДРСР)}
|
| 4119 |
+
}
|
| 4120 |
+
"""
|
| 4121 |
+
,
|
| 4122 |
+
"label_classes": ["approved", "dismissed", "partial"],
|
| 4123 |
+
}
|
| 4124 |
+
_UKRAINIAN_COURT_DECISIONS_JUDGMENT_PRE_WAR = {
|
| 4125 |
+
**_UKRAINIAN_COURT_DECISIONS_JUDGMENT,
|
| 4126 |
+
"config_name": "pre_war_lextreme",
|
| 4127 |
+
"description":
|
| 4128 |
+
"""
|
| 4129 |
+
Ukrainian Court Decisions Judgment Prediction (pre-war epoch, 2008-2013). LEXTREME benchmark subset with 1000 val/test samples. Full untruncated facts sections from civil and commercial court decisions (ЄДРСР). Temporal train/val/test split. The task is to predict the judgment outcome: approved, dismissed, or partial.
|
| 4130 |
+
"""
|
| 4131 |
+
,
|
| 4132 |
+
}
|
| 4133 |
+
_UKRAINIAN_COURT_DECISIONS_JUDGMENT_HYBRID_WAR = {
|
| 4134 |
+
**_UKRAINIAN_COURT_DECISIONS_JUDGMENT,
|
| 4135 |
+
"config_name": "hybrid_war_lextreme",
|
| 4136 |
+
"description":
|
| 4137 |
+
"""
|
| 4138 |
+
Ukrainian Court Decisions Judgment Prediction (hybrid war epoch, 2014-2021). LEXTREME benchmark subset with 1000 val/test samples. Full untruncated facts sections from civil and commercial court decisions (ЄДРСР). Temporal train/val/test split. The task is to predict the judgment outcome: approved, dismissed, or partial.
|
| 4139 |
+
"""
|
| 4140 |
+
,
|
| 4141 |
+
}
|
| 4142 |
+
_UKRAINIAN_COURT_DECISIONS_JUDGMENT_FULL_SCALE = {
|
| 4143 |
+
**_UKRAINIAN_COURT_DECISIONS_JUDGMENT,
|
| 4144 |
+
"config_name": "full_scale_lextreme",
|
| 4145 |
+
"description":
|
| 4146 |
+
"""
|
| 4147 |
+
Ukrainian Court Decisions Judgment Prediction (full-scale war epoch, 2022-2026). LEXTREME benchmark subset with 1000 val/test samples. Full untruncated facts sections from civil and commercial court decisions (ЄДРСР). Temporal train/val/test split. The task is to predict the judgment outcome: approved, dismissed, or partial.
|
| 4148 |
+
"""
|
| 4149 |
+
,
|
| 4150 |
+
}
|
| 4151 |
+
|
| 4152 |
+
|
| 4153 |
_TURKISH_CONSTITUTIONAL_COURT_DECISIONS_JUDGMENT = {
|
| 4154 |
"task_type": TaskType.SLTC,
|
| 4155 |
"hf_hub_name": "KocLab-Bilkent/turkish-constitutional-court",
|
|
|
|
| 4190 |
LextremeConfig(name="greek_legal_code_chapter", **_GREEK_LEGAL_CODE_CHAPTER),
|
| 4191 |
LextremeConfig(name="greek_legal_code_subject", **_GREEK_LEGAL_CODE_SUBJECT),
|
| 4192 |
LextremeConfig(name="online_terms_of_service_unfairness_levels", **_ONLINE_TERMS_OF_SERVICE_UNFAIRNESS_LEVELS),
|
| 4193 |
+
LextremeConfig(name="ukrainian_court_decisions_judgment_pre_war", **_UKRAINIAN_COURT_DECISIONS_JUDGMENT_PRE_WAR),
|
| 4194 |
+
LextremeConfig(name="ukrainian_court_decisions_judgment_hybrid_war", **_UKRAINIAN_COURT_DECISIONS_JUDGMENT_HYBRID_WAR),
|
| 4195 |
+
LextremeConfig(name="ukrainian_court_decisions_judgment_full_scale", **_UKRAINIAN_COURT_DECISIONS_JUDGMENT_FULL_SCALE),
|
| 4196 |
LextremeConfig(name="turkish_constitutional_court_decisions_judgment", **_TURKISH_CONSTITUTIONAL_COURT_DECISIONS_JUDGMENT),
|
| 4197 |
LextremeConfig(name="swiss_criticality_prediction_bge_facts", **_SWISS_CRITICLALITY_PREDICTION_BGE_FACTS),
|
| 4198 |
LextremeConfig(name="swiss_criticality_prediction_bge_considerations", **_SWISS_CRITICLALITY_PREDICTION_BGE_CONSIDERATIONS),
|