File size: 6,969 Bytes
96e8f56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Code des Assurances Dataset

## Overview

The **Code des Assurances** dataset is a comprehensive French legal text collection that provides researchers, professionals, and law students with simplified, up-to-date access to French insurance law texts. This dataset is part of a larger project aimed at facilitating the integration of French legal texts into Community and European projects.

## Dataset Information

- **Dataset ID:** `louisbrulenaudet/code-assurances`
- **Author:** louisbrulenaudet
- **Downloads:** 2.6K+
- **Last Updated:** July 31, 2025
- **License:** Apache 2.0
- **DOI:** 10.57967/hf/1455

## Description

The objective of this project is to provide researchers, professionals and law students with simplified, up-to-date access to all French legal texts, enriched with a wealth of data to facilitate their integration into Community and European projects.

The dataset contains the French Insurance Code (Code des Assurances) in a structured format, with data refreshed daily on all legal codes. It aims to simplify the production of training sets and labeling pipelines for the development of free, open-source language models.

## Technical Specifications

### Format
- **Primary Format:** Parquet
- **Modality:** Tabular and Text
- **Language:** French (Monolingual)

### Size Category
- **Size Range:** 1K < n < 10K entries

### Supported Libraries
- datasets
- pandas
- mlcroissant
- polars

### Dataset Structure

The dataset contains structured legal articles with the following key fields:

#### Core Fields
- **`ref`** (string): Article reference (e.g., "Code des assurances, art. L100-1")
- **`title_main`** (string): Main title (e.g., "Code des assurances")
- **`texte`** (string): Full legal text content (average ~598 characters)
- **`num`** (string): Article number (e.g., "L100-1")
- **`id`** (string): Unique article identifier (e.g., "LEGIARTI000030437933")
- **`cid`** (string): Content identifier (e.g., "LEGIARTI000006791829")

#### Metadata Fields
- **`type`** (string): Article type (e.g., "AUTONOME")
- **`etat`** (string): Legal status (e.g., "VIGUEUR" - in force)
- **`nature`** (string): Content nature (e.g., "Article")
- **`origine`** (string): Source origin (e.g., "LEGI")
- **`dateDebut`** (int64): Start date timestamp
- **`dateFin`** (int64): End date timestamp

#### HTML and Formatting
- **`texteHtml`** (string): HTML-formatted legal text with links
- **`nota`** (string): Additional notes (83.6% coverage)
- **`notaHtml`** (string): HTML-formatted notes

#### Structural Information
- **`sectionParentId`** (string): Parent section identifier
- **`sectionParentTitre`** (string): Parent section title (e.g., "Livre Ier : Le contrat")
- **`fullSectionsTitre`** (string): Full section hierarchy path
- **`ordre`** (int64): Display order within section

#### Cross-References
- **`lienCitations`** (list): Citations to other legal texts
- **`lienAutres`** (list): Other legal references
- **`versionPrecedente`** (string): Previous version reference
- **`refInjection`** (string): Injection reference

### Typical Entry Example

```json
{
  "ref": "Code des assurances, art. L100-1",
  "title_main": "Code des assurances",
  "texte": "Pour l'application du présent livre, les mots : \" la France \", les mots : \" en France \", et les mots : \" territoire de la République française \" désignent la France métropolitaine et les collectivités territoriales régies par l'article 73 de la Constitution ainsi que Saint-Barthélemy et Saint-Martin. Sauf pour les dispositions qui concernent la libre prestation de services et la liberté d'établissement, ces mots désignent également Saint-Pierre-et-Miquelon.",
  "num": "L100-1",
  "id": "LEGIARTI000030437933",
  "cid": "LEGIARTI000006791829",
  "type": "AUTONOME",
  "etat": "VIGUEUR",
  "nature": "Article",
  "origine": "LEGI",
  "dateDebut": 1451606400000,
  "dateFin": 32472144000000,
  "texteHtml": "<p>Pour l'application du présent livre, les mots : \" la France \", les mots : \" en France \", et les mots : \" territoire de la République française \" désignent la France métropolitaine et les collectivités territoriales régies par <a href=\"/affichTexteArticle.do?cidTexte=JORFTEXT000000571356&idArticle=LEGIARTI000006527580&dateTexte=&categorieLien=cid\" title=\"Constitution du 4 octobre 1958 - art. 73 (V)\">l'article 73</a> de la Constitution ainsi que Saint-Barthélemy et Saint-Martin. Sauf pour les dispositions qui concernent la libre prestation de services et la liberté d'établissement, ces mots désignent également Saint-Pierre-et-Miquelon.</p>",
  "sectionParentTitre": "Livre Ier : Le contrat",
  "fullSectionsTitre": "Partie législative > Livre Ier : Le contrat",
  "lienCitations": [
    {
      "articleId": "LEGIARTI000006527580",
      "articleNum": "73",
      "natureText": "CONSTITUTION",
      "textTitle": "Constitution du 4 octobre 1958 - art. 73 (V)"
    }
  ],
  "lienAutres": []
}
```

## Task Categories

This dataset is suitable for various natural language processing tasks:

- **Text Generation:** Generate legal text based on prompts
- **Table Question Answering:** Answer questions about legal provisions
- **Summarization:** Summarize legal texts and articles
- **Text Retrieval:** Find relevant legal provisions
- **Question Answering:** Answer legal questions
- **Text Classification:** Categorize legal texts

## Tags and Categories

### Primary Tags
- `legal` - Legal domain content
- `french law` - French legal system
- `droit français` - French law
- `Code des assurances` - Insurance code

### Technical Tags
- `task_categories:text-generation`
- `task_categories:table-question-answering`
- `task_categories:summarization`
- `task_categories:text-retrieval`
- `task_categories:question-answering`
- `task_categories:text-classification`
- `multilinguality:monolingual`
- `source_datasets:original`
- `language:fr`
- `license:apache-2-0`
- `size_categories:1K<n<10K`
- `format:parquet`
- `modality:tabular`
- `modality:text`
- `finetuning`

## Usage

This dataset is particularly useful for:

1. **Legal AI Development:** Training language models for legal text understanding
2. **Legal Research:** Providing structured access to French insurance law
3. **Educational Purposes:** Supporting law students and legal professionals
4. **European Legal Integration:** Facilitating cross-border legal text processing

## Dataset Link

**Hugging Face Hub:** [https://hf.co/datasets/louisbrulenaudet/code-assurances](https://hf.co/datasets/louisbrulenaudet/code-assurances)

## Related Datasets

This dataset is part of a larger collection of French legal codes maintained by the same author, providing comprehensive coverage of French legal texts.

## Citation

If you use this dataset in your research, please cite:
```
DOI: 10.57967/hf/1455
```

## License

This dataset is released under the Apache 2.0 license, allowing for both commercial and non-commercial use with appropriate attribution.