File size: 9,726 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# Code du Travail Dataset

## Overview

The **Code du Travail** dataset is a comprehensive French legal text collection that provides researchers, professionals, and law students with simplified, up-to-date access to all French legal texts. This dataset is enriched with extensive data to facilitate integration into Community and European projects.

## Dataset Information

- **Dataset ID:** `louisbrulenaudet/code-travail`
- **Author:** louisbrulenaudet
- **License:** Apache 2.0
- **Language:** French (fr)
- **Format:** Parquet
- **Size Category:** 1K-10K entries
- **Downloads:** 2.1K+
- **Likes:** 8
- **Last Updated:** July 11, 2025

## Purpose and Objectives

The primary objective of this project is to:
- Provide simplified, up-to-date access to French legal texts
- Facilitate integration into Community and European projects
- Simplify the production of training sets and labeling pipelines
- Support the development of free, open-source language models

## Key Features

### Data Refresh
- Data is refreshed daily on all legal codes
- Ensures up-to-date legal information

### Supported Tasks
The dataset supports multiple natural language processing tasks:
- **Text Generation**
- **Table Question Answering**
- **Summarization**
- **Text Retrieval**
- **Question Answering**
- **Text Classification**

### Technical Specifications
- **Modality:** Tabular and Text
- **Multilinguality:** Monolingual (French)
- **Source:** Original dataset
- **DOI:** 10.57967/hf/1456

## Use Cases

### For Researchers
- Legal text analysis and research
- French labor law studies
- Legal document processing

### For Professionals
- Legal document automation
- Contract analysis
- Compliance checking

### For Law Students
- French labor law education
- Legal text comprehension
- Case study preparation

### For Developers
- Training language models for legal applications
- Building legal AI assistants
- Developing legal document processing tools

## Dataset Structure

The dataset contains French labor law texts organized in a structured format that supports various NLP tasks. The data is stored in Parquet format for efficient processing and analysis.

### Schema

The dataset includes the following fields:

| Field | Type | Description |
|-------|------|-------------|
| `ref` | string | Reference identifier |
| `title_main` | string | Main title of the legal text |
| `texte` | string | The actual legal text content |
| `dateDebut` | int64 | Start date (timestamp) |
| `dateFin` | int64 | End date (timestamp) |
| `num` | string | Article number |
| `id` | string | Unique identifier |
| `cid` | string | Content identifier |
| `type` | string | Type of legal text |
| `etat` | string | Current state/status |
| `nota` | string | Notes |
| `version_article` | string | Article version |
| `ordre` | int64 | Order/sequence number |
| `texteHtml` | string | HTML formatted text |
| `origine` | string | Source origin |
| `multipleVersions` | bool | Whether multiple versions exist |
| `comporteLiensSP` | bool | Contains special links |
| `sectionParentTitre` | string | Parent section title |
| `fullSectionsTitre` | string | Full section hierarchy title |
| `lienCitations` | list | Citation links |
| `lienAutres` | list | Other links |

### Example Row

Here's a typical example from the dataset:

```json
{
  "ref": "Code du travail, art. L1133-2",
  "title_main": "Code du travail",
  "texte": "Les différences de traitement fondées sur l'âge ne constituent pas une discrimination lorsqu'elles sont objectivement et raisonnablement justifiées par un but légitime, notamment par le souci de préserver la santé ou la sécurité des travailleurs, de favoriser leur insertion professionnelle, d'assurer leur emploi, leur reclassement ou leur indemnisation en cas de perte d'emploi, et lorsque les moyens de réaliser ce but sont nécessaires et appropriés. Ces différences peuvent notamment consister en : 1° L'interdiction de l'accès à l'emploi ou la mise en place de conditions de travail spéciales en vue d'assurer la protection des jeunes et des travailleurs âgés ; 2° La fixation d'un âge maximum pour le recrutement, fondée sur la formation requise pour le poste concerné ou la nécessité d'une période d'emploi raisonnable avant la retraite.",
  "dateDebut": 1212019200000,
  "dateFin": 32472144000000,
  "num": "L1133-2",
  "id": "LEGIARTI000018931868",
  "cid": "LEGIARTI000006900793",
  "type": "AUTONOME",
  "etat": "VIGUEUR",
  "nota": "2.0",
  "version_article": "85,898",
  "ordre": null,
  "conditionDiffere": null,
  "infosComplementaires": null,
  "surtitre": null,
  "nature": "Article",
  "texteHtml": "<p>Les différences de traitement fondées sur l'âge ne constituent pas une discrimination lorsqu'elles sont objectivement et raisonnablement justifiées par un but légitime, notamment par le souci de préserver la santé ou la sécurité des travailleurs, de favoriser leur insertion professionnelle, d'assurer leur emploi, leur reclassement ou leur indemnisation en cas de perte d'emploi, et lorsque les moyens de réaliser ce but sont nécessaires et appropriés.</p><p>Ces différences peuvent notamment consister en :</p><p>1° L'interdiction de l'accès à l'emploi ou la mise en place de conditions de travail spéciales en vue d'assurer la protection des jeunes et des travailleurs âgés ;</p><p>2° La fixation d'un âge maximum pour le recrutement, fondée sur la formation requise pour le poste concerné ou la nécessité d'une période d'emploi raisonnable avant la retraite.</p>",
  "dateFinExtension": 32472144000000,
  "versionPrecedente": "LEGIARTI000006900793",
  "refInjection": "IG-20241212",
  "idTexte": null,
  "idTechInjection": "LEGIARTI000018931868",
  "origine": "LEGI",
  "dateDebutExtension": 32472144000000,
  "idEliAlias": null,
  "cidTexte": "LEGISCTA000006177837",
  "sectionParentId": null,
  "multipleVersions": false,
  "comporteLiensSP": false,
  "sectionParentTitre": "Chapitre III : Différences de traitement autorisées.",
  "infosRestructurationBranche": null,
  "idEli": null,
  "sectionParentCid": "LEGISCTA000006177837",
  "numeroBo": null,
  "infosRestructurationBrancheHtml": null,
  "historique": null,
  "infosComplementairesHtml": null,
  "renvoi": null,
  "fullSectionsTitre": "Partie législative > Première partie : Les relations individuelles de travail > Livre Ier : Dispositions préliminaires > Titre III : Discriminations > Chapitre III : Différences de traitement autorisées.",
  "notaHtml": "<p></p><p></p><p></p><p><br clear=\"none\" /></p>",
  "inap": null,
  "lienCitations": [
    {
      "articleId": "KALIARTI000021881967",
      "articleNum": "",
      "dateDebut": 1257292800000,
      "datePubli": 1267401600000,
      "linkOrientation": "cible",
      "linkType": "CITATION",
      "natureText": "Accord",
      "numTexte": "",
      "parentCid": null,
      "textCid": "KALITEXT000021881957",
      "textTitle": "Emploi des seniors - art. (VE)"
    },
    {
      "articleId": "JORFARTI000022549156",
      "articleNum": "1",
      "dateDebut": 32472144000000,
      "datePubli": 1280361600000,
      "linkOrientation": "cible",
      "linkType": "CITATION",
      "natureText": "ARRETE",
      "numTexte": "",
      "parentCid": null,
      "textCid": "JORFTEXT000022549153",
      "textTitle": "Arrêté du 20 juillet 2010 - art. 1, v. init."
    },
    {
      "articleId": "JORFARTI000048148650",
      "articleNum": "1",
      "dateDebut": 32472144000000,
      "datePubli": 1696377600000,
      "linkOrientation": "cible",
      "linkType": "CITATION",
      "natureText": "ARRETE",
      "numTexte": "",
      "parentCid": null,
      "textCid": "JORFTEXT000048148648",
      "textTitle": "Arrêté du 6 septembre 2023 - art. 1, v. init."
    },
    {
      "articleId": "KALIARTI000022671872",
      "articleNum": "",
      "dateDebut": 1268870400000,
      "datePubli": 32472144000000,
      "linkOrientation": "cible",
      "linkType": "CITATION",
      "natureText": "Accord",
      "numTexte": "",
      "parentCid": null,
      "textCid": "KALITEXT000022671870",
      "textTitle": "Emploi des seniors - art. (VE)"
    }
  ],
  "lienAutres": []
}
```

This example shows Article L1133-2 from the French Labor Code, which deals with age-based treatment differences in employment. The article explains when age-based differences in treatment are not considered discrimination, particularly for health and safety reasons, professional integration, employment security, and retirement planning.

## Access and Usage

### Direct Access
- **Hugging Face Hub:** [https://hf.co/datasets/louisbrulenaudet/code-travail](https://hf.co/datasets/louisbrulenaudet/code-travail)
- **Full Description:** Available on the dataset page

### Libraries Supported
- **datasets** (Hugging Face)
- **pandas**
- **mlcroissant**
- **polars**

## Legal and Ethical Considerations

- **License:** Apache 2.0 - Allows commercial use with attribution
- **Region:** US-based dataset
- **Content:** French labor law texts
- **Use Case:** Educational, research, and commercial applications

## Related Tags

The dataset is tagged with relevant categories including:
- `legal`
- `french law`
- `droit français`
- `Code du travail`
- `finetuning`

## Citation

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

## Contributing

This dataset is part of a larger effort to provide open access to French legal texts. For more information about contributing or using the dataset, visit the Hugging Face dataset page.

---

*This dataset is maintained by louisbrulenaudet and is updated regularly to ensure accuracy and completeness of French labor law information.*