File size: 7,381 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
# Code de la Commande Publique Dataset

## Overview

The **Code de la Commande Publique** dataset is a comprehensive collection of French public procurement law texts, designed to provide researchers, professionals, and law students with simplified, up-to-date access to French legal texts. This dataset is enriched with metadata to facilitate integration into Community and European projects.

## Dataset Information

- **Dataset ID:** `louisbrulenaudet/code-commande-publique`
- **Author:** louisbrulenaudet
- **Downloads:** 2.7K+
- **Last Updated:** July 31, 2025
- **License:** Apache 2.0
- **DOI:** 10.57967/hf/1458

## 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 data is refreshed daily on all legal codes and aims to simplify the production of training sets and labeling pipelines for the development of free, open-source legal AI applications.

## Key Features

- **Language:** French (fr)
- **Size Category:** 1K-10K entries
- **Format:** Parquet
- **Modality:** Tabular and Text
- **Multilinguality:** Monolingual (French)

## Supported Tasks

This dataset supports multiple natural language processing tasks:

- **Text Generation:** Generate legal text based on prompts
- **Table Question Answering:** Answer questions about legal tables and structured data
- **Summarization:** Create summaries of legal texts
- **Text Retrieval:** Find relevant legal passages
- **Question Answering:** Answer legal questions
- **Text Classification:** Categorize legal documents

## Technical Details

### Libraries Supported
- 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 de la commande publique, art. L1121-2")
- **`title_main`** (string): Main title (e.g., "Code de la commande publique")
- **`texte`** (string): Full legal text content
- **`num`** (string): Article number (e.g., "L1121-2")
- **`id`** (string): Unique article identifier (e.g., "LEGIARTI000037703290")
- **`cid`** (string): Content identifier (e.g., "LEGIARTI000037703290")

#### 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
- **`notaHtml`** (string): HTML-formatted notes

#### Structural Information
- **`sectionParentId`** (string): Parent section identifier
- **`sectionParentTitre`** (string): Parent section title (e.g., "Section 2 : Objet")
- **`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 de la commande publique, art. L1121-2",
  "title_main": "Code de la commande publique",
  "texte": "Un contrat de concession de travaux a pour objet : 1° Soit l'exécution, soit la conception et l'exécution de travaux dont la liste figure dans un avis annexé au présent code ; 2° Soit la réalisation, soit la conception et la réalisation, par quelque moyen que ce soit, d'un ouvrage répondant aux exigences fixées par l'autorité concédante. Un ouvrage est le résultat d'un ensemble de travaux de bâtiment ou de génie civil destiné à remplir par lui-même une fonction économique ou technique.",
  "num": "L1121-2",
  "id": "LEGIARTI000037703290",
  "cid": "LEGIARTI000037703290",
  "type": "AUTONOME",
  "etat": "VIGUEUR",
  "nature": "Article",
  "origine": "LEGI",
  "dateDebut": 1554076800000,
  "dateFin": 32472144000000,
  "texteHtml": "<p><br/>Un contrat de concession de travaux a pour objet :<br/>1° Soit l'exécution, soit la conception et l'exécution de travaux dont la liste figure dans un avis annexé au présent code ;<br/>2° Soit la réalisation, soit la conception et la réalisation, par quelque moyen que ce soit, d'un ouvrage répondant aux exigences fixées par l'autorité concédante.<br/>Un ouvrage est le résultat d'un ensemble de travaux de bâtiment ou de génie civil destiné à remplir par lui-même une fonction économique ou technique.</p>",
  "sectionParentTitre": "Section 2 : Objet",
  "fullSectionsTitre": "Partie législative > PREMIÈRE PARTIE : DÉFINITIONS ET CHAMP D'APPLICATION > Livre Ier : CONTRATS DE LA COMMANDE PUBLIQUE > Titre II : CONTRATS DE CONCESSION > Chapitre Ier : Contrat de concession > Section 2 : Objet",
  "lienCitations": [
    {
      "articleId": "JORFARTI000038318373",
      "articleNum": "",
      "dateDebut": 32472144000000,
      "datePubli": 1553990400000,
      "linkOrientation": "cible",
      "linkType": "CITATION",
      "natureText": "ARRETE",
      "numTexte": "",
      "parentCid": null,
      "textCid": "JORFTEXT000038318367",
      "textTitle": "Arrêté du 22 mars 2019 - art., v. init."
    },
    {
      "articleId": "LEGIARTI000038319372",
      "articleNum": "",
      "dateDebut": 1554076800000,
      "datePubli": 1553990400000,
      "linkOrientation": "cible",
      "linkType": "CITATION",
      "natureText": "AVIS",
      "numTexte": "",
      "parentCid": null,
      "textCid": "JORFTEXT000038319246",
      "textTitle": "Avis divers - art. (V)"
    },
    {
      "articleId": "LEGIARTI000046909723",
      "articleNum": "Annexe préliminaire",
      "dateDebut": 1704067200000,
      "datePubli": 32472144000000,
      "linkOrientation": "cible",
      "linkType": "CITATION",
      "natureText": "CODE",
      "numTexte": "",
      "parentCid": null,
      "textCid": "LEGITEXT000037701019",
      "textTitle": "Code de la commande publique - art. Annexe préliminaire (VD)"
    }
  ],
  "lienAutres": []
}
```

### Tags
- `legal`
- `french law`
- `droit français`
- `Code de la commande publique`
- `finetuning`

## Usage

This dataset is particularly useful for:

1. **Legal AI Development:** Training models for legal text understanding and generation
2. **Research:** Academic research in legal NLP and computational law
3. **Professional Tools:** Development of legal assistance tools and applications
4. **Education:** Law student training and educational applications

## Access

- **Hugging Face Hub:** [https://hf.co/datasets/louisbrulenaudet/code-commande-publique](https://hf.co/datasets/louisbrulenaudet/code-commande-publique)
- **License:** Apache 2.0 (commercial use permitted with attribution)

## Updates

The dataset is updated daily to ensure the most current version of French legal codes is available for users.

---

*This dataset is part of a larger effort to make French legal texts more accessible and usable for AI applications while maintaining accuracy and legal validity.*