Download utils/code_commande_publique/readme.md from Tonic/legml_code_repo_data: direct link, hf CLI and curl.
- Browser
- Download file 7.38 kB
-
https://huggingface.co/Tonic/legml_code_repo_data/resolve/main/utils/code_commande_publique/readme.md
- Command line
-
hf download hf://Tonic/legml_code_repo_data/utils/code_commande_publique/readme.md
-
curl -L -o readme.md https://huggingface.co/Tonic/legml_code_repo_data/resolve/main/utils/code_commande_publique/readme.md
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 contentnum(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 timestampdateFin(int64): End date timestamp
HTML and Formatting
texteHtml(string): HTML-formatted legal text with linksnota(string): Additional notesnotaHtml(string): HTML-formatted notes
Structural Information
sectionParentId(string): Parent section identifiersectionParentTitre(string): Parent section title (e.g., "Section 2 : Objet")fullSectionsTitre(string): Full section hierarchy pathordre(int64): Display order within section
Cross-References
lienCitations(list): Citations to other legal textslienAutres(list): Other legal referencesversionPrecedente(string): Previous version referencerefInjection(string): Injection reference
Typical Entry Example
{
"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
legalfrench lawdroit françaisCode de la commande publiquefinetuning
Usage
This dataset is particularly useful for:
- Legal AI Development: Training models for legal text understanding and generation
- Research: Academic research in legal NLP and computational law
- Professional Tools: Development of legal assistance tools and applications
- Education: Law student training and educational applications
Access
- Hugging Face Hub: 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.