|
Download utils/code_travail/readme.md from Tonic/legml_code_repo_data: direct link, hf CLI and curl.
- Browser
- Download file 9.73 kB
-
https://huggingface.co/Tonic/legml_code_repo_data/resolve/main/utils/code_travail/readme.md
- Command line
-
hf download hf://Tonic/legml_code_repo_data/utils/code_travail/readme.md
-
curl -L -o readme.md https://huggingface.co/Tonic/legml_code_repo_data/resolve/main/utils/code_travail/readme.md
9.73 kB
| # 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.* | |