harshildarji commited on
Commit
84d5665
·
verified ·
1 Parent(s): 64b3e9d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +113 -3
README.md CHANGED
@@ -1,3 +1,113 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - text-classification
5
+ - text-generation
6
+ language:
7
+ - de
8
+ tags:
9
+ - legal
10
+ pretty_name: Clean Open Legal Data
11
+ size_categories:
12
+ - 100K<n<1M
13
+ configs:
14
+ - config_name: cases
15
+ data_files:
16
+ - split: main
17
+ path: data/cases.jsonl.gz
18
+ ---
19
+ # Clean Open Legal Data
20
+
21
+ This dataset is a comprehensive collection of open legal case records in JSONL format. It comprises **251,038** cases extracted and processed from the [Open Legal Data dump](https://static.openlegaldata.io/dumps/de/2022-10-18/) (as of _2022-10-18_). The dataset is designed for legal research, data science, and natural language processing applications. While the majority of entries (especially _tenor_, _tatbestand_, _gründe_, and _entscheidungsgründe_) have been carefully separated and extracted, approximately **1,176** (**0.47%** of total) cases have been flagged as "_messy_" due to extraction or formatting issues. These messy entries are included for full transparency, and their "_slug_" IDs are available in [`problematic_case_slugs.txt`](https://huggingface.co/datasets/harshildarji/openlegaldata/blob/main/problematic_case_slugs.txt) so users can decide whether to filter them out or work with them. In references, law references and case references are also separated, as shown in the [example entry](#example-entry).
22
+
23
+ ### Dataset Structure
24
+
25
+ - **Language:** German
26
+ - **Format:** JSONL
27
+ - **Total Cases:** 251,038
28
+
29
+ ### Key Fields
30
+
31
+ - **id:** Unique identifier for the record.
32
+ - **file_number:** Identifier for the case (e.g., `"1 A 2639/20"`).
33
+ - **slug:** URL-friendly unique identifier (e.g., `"ovgnrw-2022-03-25-1-a-263920"`).
34
+ - **ecli:** European Case Law Identifier.
35
+ - **date:** Date of the decision in `YYYY-MM-DD` format.
36
+ - **court:** JSON object with court details (e.g., _name_, _city_, _state_, _jurisdiction_).
37
+ - **type:** Type of legal decision (e.g., "Beschluss").
38
+ - **tenor:** List of summary statements of the decision.
39
+ - **tatbestand:** List of factual background details.
40
+ - **gründe:** List of reasoning or legal arguments provided.
41
+ - **entscheidungsgründe:** Detailed decision reasons.
42
+ - **references:** Contains references to laws and related cases.
43
+
44
+ ## Example Entry
45
+
46
+ Below is an example entry from the JSONL file:
47
+
48
+ ```json
49
+ {
50
+ "id": 344319,
51
+ "file_number": "1 A 2639/20",
52
+ "slug": "ovgnrw-2022-03-25-1-a-263920",
53
+ "ecli": "ECLI:DE:OVGNRW:2022:0325.1A2639.20.00",
54
+ "date": "2022-03-25",
55
+ "court": {
56
+ "id": 823,
57
+ "name": "Oberverwaltungsgericht Nordrhein-Westfalen",
58
+ "slug": "ovgnrw",
59
+ "city": "Unspecified",
60
+ "state": "Nordrhein-Westfalen",
61
+ "jurisdiction": "Verwaltungsgerichtsbarkeit",
62
+ "level_of_appeal": null
63
+ },
64
+ "type": "Beschluss",
65
+ "tenor": [
66
+ "Der Antrag wird abgelehnt.",
67
+ "...",
68
+ "Der Streitwert wird auch für das Zulassungsverfahren auf 7.500,00 Euro festgesetzt."
69
+ ],
70
+ "tatbestand": [],
71
+ "gründe": [
72
+ "Der Antrag des Klägers auf Zulassung der Berufung hat keinen Erfolg.",
73
+ "...",
74
+ "Das angefochtene Urteil ist nunmehr rechtskräftig, § 124a Abs. 5 Satz 4 VwGO."
75
+ ],
76
+ "entscheidungsgründe": [],
77
+ "references": {
78
+ "law": [
79
+ "§ 124a Abs. 4 Satz 4 VwGO",
80
+ "§ 124a Abs. 5 Satz 4 VwGO",
81
+ "..."
82
+ ],
83
+ "case": [
84
+ "1 A 5162/05",
85
+ "1 KR 87/11",
86
+ "..."
87
+ ]
88
+ }
89
+ }
90
+ ```
91
+
92
+ ## Using the Dataset with Python
93
+
94
+ Below is an example of how to load and explore the dataset using Python with the [🤗 Datasets](https://huggingface.co/docs/hub/datasets-usage) library:
95
+
96
+ ```python
97
+ import json
98
+
99
+ from datasets import load_dataset
100
+
101
+ # Load cases
102
+ cases = load_dataset("harshildarji/openlegaldata", "cases", split="main")
103
+
104
+ # Total cases
105
+ print(len(cases))
106
+
107
+ # View first case
108
+ print(json.dumps(cases[0], indent=4, default=str, ensure_ascii=False))
109
+ ```
110
+
111
+ ## License
112
+
113
+ This dataset is released under the MIT license, same license as the [Open Legal Data platform](https://github.com/openlegaldata/oldp).