Tonic commited on
Commit
8a615a0
·
verified ·
1 Parent(s): bbbaf29

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +214 -0
README.md ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language:
5
+ - fr
6
+ language_creators:
7
+ - found
8
+ license:
9
+ - cc-by-4.0
10
+ multilinguality:
11
+ - monolingual
12
+ pretty_name: French Legal Cases Dataset
13
+ size_categories:
14
+ - n>1M
15
+ source_datasets:
16
+ - la-mousse/INCA-17-01-2025
17
+ - la-mousse/JADE-17-01-2025
18
+ - la-mousse/CASS-17-01-2025
19
+ - la-mousse/CAPP-17-01-2025
20
+ task_categories:
21
+ - text-generation
22
+ - text-classification
23
+ task_ids:
24
+ - language-modeling
25
+ - text-classification-other
26
+ paperswithcode_id: french-legal-cases
27
+
28
+ dataset_info:
29
+ features:
30
+ - name: id
31
+ dtype: string
32
+ - name: url
33
+ dtype: string
34
+ - name: case_number
35
+ dtype: string
36
+ - name: contenu
37
+ dtype: string
38
+ - name: sommaire
39
+ dtype: string
40
+ - name: sommaire_bis
41
+ dtype: string
42
+ - name: metadata
43
+ dtype: string
44
+ - name: dataset_source
45
+ dtype: string
46
+ - name: previous_text
47
+ dtype: string
48
+ - name: current_text
49
+ dtype: string
50
+ - name: next_text
51
+ dtype: string
52
+ - name: triplet_index
53
+ dtype: int64
54
+ - name: window_index
55
+ dtype: int64
56
+
57
+ config_name: default
58
+ splits:
59
+ - name: train
60
+ num_bytes: ???
61
+ num_examples: ???
62
+
63
+ download_size: ???
64
+ dataset_size: ???
65
+
66
+ ---
67
+
68
+ # Dataset Card for French Legal Cases Dataset
69
+
70
+ ## Dataset Description
71
+
72
+ - **Homepage:** [https://huggingface.co/datasets/la-mousse/combined-fe-caselaw](https://huggingface.co/datasets/la-mousse/combined-fe-caselaw)
73
+ - **Repository:** [https://huggingface.co/datasets/la-mousse/combined-fe-caselaw](https://huggingface.co/datasets/la-mousse/combined-fe-caselaw)
74
+ - **Paper:** N/A
75
+ - **Point of Contact:** [Your Contact Information]
76
+
77
+ ### Dataset Summary
78
+
79
+ This dataset combines French legal cases from multiple sources (INCA, JADE, CASS, CAPP) into a unified format with overlapping text triplets. It includes decisions from various French courts, processed to facilitate natural language processing tasks.
80
+
81
+ ### Supported Tasks and Leaderboards
82
+
83
+ - **Tasks:**
84
+ - Text Generation
85
+ - Legal Document Analysis
86
+ - Text Classification
87
+ - Language Modeling
88
+
89
+ ### Languages
90
+
91
+ The dataset is monolingual (French).
92
+
93
+ ## Dataset Structure
94
+
95
+ ### Data Instances
96
+
97
+ Each instance contains:
98
+ - Document identifiers (id, url, case_number)
99
+ - Original text content (contenu)
100
+ - Summaries (sommaire, sommaire_bis)
101
+ - Metadata (JSON formatted string)
102
+ - Text triplets (previous_text, current_text, next_text)
103
+ - Position tracking (triplet_index, window_index)
104
+
105
+ Example:
106
+ ```python
107
+ {
108
+ 'id': 'CASS12345',
109
+ 'url': 'https://...',
110
+ 'case_number': '12-34567',
111
+ 'contenu': 'Full text...',
112
+ 'sommaire': 'Summary...',
113
+ 'sommaire_bis': 'Additional summary...',
114
+ 'metadata': '{"date_decision": "2023-01-01", ...}',
115
+ 'dataset_source': 'CASS',
116
+ 'previous_text': 'Previous chunk...',
117
+ 'current_text': 'Current chunk...',
118
+ 'next_text': 'Next chunk...',
119
+ 'triplet_index': 0,
120
+ 'window_index': 0
121
+ }
122
+ ```
123
+
124
+ ### Data Fields
125
+
126
+ - `id`: Unique identifier
127
+ - `url`: Source URL
128
+ - `case_number`: Case reference number
129
+ - `contenu`: Full text content
130
+ - `sommaire`: Primary summary
131
+ - `sommaire_bis`: Secondary summary
132
+ - `metadata`: JSON string containing additional metadata
133
+ - `dataset_source`: Origin dataset (INCA/JADE/CASS/CAPP)
134
+ - `previous_text`: Previous text chunk
135
+ - `current_text`: Current text chunk
136
+ - `next_text`: Next text chunk
137
+ - `triplet_index`: Position in sequence of triplets
138
+ - `window_index`: Window number for long texts
139
+
140
+ ### Data Splits
141
+
142
+ - Training split only
143
+
144
+ ## Dataset Creation
145
+
146
+ ### Curation Rationale
147
+
148
+ This dataset was created to provide a standardized format for French legal texts, with overlapping text chunks suitable for various NLP tasks.
149
+
150
+ ### Source Data
151
+
152
+ #### Initial Data Collection and Normalization
153
+
154
+ - INCA: Court of Cassation decisions
155
+ - JADE: Administrative court decisions
156
+ - CASS: Court of Cassation decisions
157
+ - CAPP: Court of Appeal decisions
158
+
159
+ ### Preprocessing
160
+
161
+ - Text chunking with 230-token chunks and 30-token overlap
162
+ - Sliding window approach for long texts
163
+ - Metadata preservation and standardization
164
+ - Token count verification
165
+ - JSON formatting for metadata
166
+
167
+ ### Quality Control
168
+
169
+ - Token length verification
170
+ - Chunk coherence checks
171
+ - Metadata validation
172
+ - Error logging and handling
173
+
174
+ ## Considerations for Using the Data
175
+
176
+ ### Social Impact of Dataset
177
+
178
+ This dataset aims to improve access to and understanding of French legal decisions, potentially benefiting legal research and analysis.
179
+
180
+ ### Discussion of Biases
181
+
182
+ The dataset may reflect inherent biases in the French legal system and case selection/publication processes.
183
+
184
+ ### Other Known Limitations
185
+
186
+ - Limited to published decisions
187
+ - Varying detail levels across sources
188
+ - Potential OCR errors in source texts
189
+
190
+ ## Additional Information
191
+
192
+ ### Dataset Curators
193
+
194
+ La-Mousse
195
+
196
+ ### Licensing Information
197
+
198
+ CC-BY-4.0
199
+
200
+ ### Citation Information
201
+
202
+ ```
203
+ @misc{french-legal-cases-2024,
204
+ title={French Legal Cases Dataset},
205
+ author={[Your Name]},
206
+ year={2024},
207
+ publisher={HuggingFace},
208
+ url={https://huggingface.co/datasets/la-mousse/combined-fr-caselaw}
209
+ }
210
+ ```
211
+
212
+ ### Contributions
213
+
214
+ Thanks to [@huggingface](https://github.com/huggingface) for the dataset hosting and infrastructure.