{"id":18588520,"url":"https://github.com/antoinejeannot/jurisprudence","last_synced_at":"2025-06-13T08:34:59.274Z","repository":{"id":255704111,"uuid":"851321285","full_name":"antoinejeannot/jurisprudence","owner":"antoinejeannot","description":"French Jurisprudences at your fingertips @ every 72h","archived":false,"fork":false,"pushed_at":"2025-03-20T14:31:21.000Z","size":148,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T01:42:09.062Z","etag":null,"topics":["decisions","france","french","huggingface-datasets","jurisprudence","law","legal","opendata","rulings"],"latest_commit_sha":null,"homepage":"https://huggingface.co/datasets/antoinejeannot/jurisprudence","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antoinejeannot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-02T21:53:12.000Z","updated_at":"2025-03-20T14:30:24.000Z","dependencies_parsed_at":"2025-04-11T01:35:23.163Z","dependency_job_id":null,"html_url":"https://github.com/antoinejeannot/jurisprudence","commit_stats":null,"previous_names":["antoinejeannot/jurisprudence"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/antoinejeannot/jurisprudence","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinejeannot%2Fjurisprudence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinejeannot%2Fjurisprudence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinejeannot%2Fjurisprudence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinejeannot%2Fjurisprudence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antoinejeannot","download_url":"https://codeload.github.com/antoinejeannot/jurisprudence/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinejeannot%2Fjurisprudence/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259610530,"owners_count":22884278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decisions","france","french","huggingface-datasets","jurisprudence","law","legal","opendata","rulings"],"created_at":"2024-11-07T00:46:14.883Z","updated_at":"2025-06-13T08:34:59.250Z","avatar_url":"https://github.com/antoinejeannot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/antoinejeannot/jurisprudence/artefacts/jurisprudence.svg\" width=650\u003e\u003c/p\u003e\n\n[![Dataset on HF](https://huggingface.co/datasets/huggingface/badges/resolve/main/dataset-on-hf-md-dark.svg)](https://huggingface.co/datasets/antoinejeannot/jurisprudence) [![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge\u0026logo=github\u0026logoColor=white)](https://github.com/antoinejeannot/jurisprudence)\n\n# ✨ Jurisprudence, release v2025.03.20 🏛️\n\nJurisprudence is an open-source project that automates the collection and distribution of French legal decisions. It leverages the Judilibre API provided by the Cour de Cassation to:\n\n- Fetch rulings from major French courts (Cour de Cassation, Cour d'Appel, Tribunal Judiciaire)\n- Process and convert the data into easily accessible formats\n- Publish \u0026 version updated datasets on Hugging Face every few days.\n\nIt aims to democratize access to legal information, enabling researchers, legal professionals and the public to easily access and analyze French court decisions.\nWhether you're conducting legal research, developing AI models, or simply interested in French jurisprudence, this project might provide a valuable, open resource for exploring the French legal landscape.\n\n## 📊 Exported Data\n\n| Jurisdiction | Jurisprudences | Oldest | Latest | Tokens | JSONL (gzipped) | Parquet |\n|--------------|----------------|--------|--------|--------|-----------------|---------|\n| Cour d'Appel | 430,654 | 1996-03-25 | 2025-03-14 | 2,132,418,652 | [Download (1.87 GB)](https://huggingface.co/datasets/antoinejeannot/jurisprudence/resolve/main/cour_d_appel.jsonl.gz?download=true) | [Download (3.11 GB)](https://huggingface.co/datasets/antoinejeannot/jurisprudence/resolve/main/cour_d_appel.parquet?download=true) |\n| Tribunal Judiciaire | 142,239 | 2023-12-14 | 2025-02-26 | 493,543,429 | [Download (453.22 MB)](https://huggingface.co/datasets/antoinejeannot/jurisprudence/resolve/main/tribunal_judiciaire.jsonl.gz?download=true) | [Download (746.78 MB)](https://huggingface.co/datasets/antoinejeannot/jurisprudence/resolve/main/tribunal_judiciaire.parquet?download=true) |\n| Cour de Cassation | 553,075 | 1860-08-01 | 2025-03-19 | 1,129,487,230 | [Download (949.16 MB)](https://huggingface.co/datasets/antoinejeannot/jurisprudence/resolve/main/cour_de_cassation.jsonl.gz?download=true) | [Download (1.60 GB)](https://huggingface.co/datasets/antoinejeannot/jurisprudence/resolve/main/cour_de_cassation.parquet?download=true) |\n| **Total** | **1,125,968** | **1860-08-01** | **2025-03-19** | **3,755,449,311** | **3.24 GB** | **5.44 GB** |\n\n\u003ci\u003eLatest update date: 2025-03-20\u003c/i\u003e\n\n\u003ci\u003e# Tokens are computed using GPT-4 tiktoken and the `text` column.\u003c/i\u003e\n\n## 🤗 Hugging Face Dataset\n\nThe up-to-date jurisprudences dataset is available at: https://huggingface.co/datasets/antoinejeannot/jurisprudence in JSONL (gzipped) and parquet formats.\n\nThis allows you to easily fetch, query, process and index all jurisprudences in the blink of an eye!\n\n### Usage Examples\n#### HuggingFace Datasets\n```python\n# pip install datasets\nimport datasets\n\ndataset = load_dataset(\"antoinejeannot/jurisprudence\")\ndataset.shape\n\u003e\u003e {'tribunal_judiciaire': (58986, 33),\n'cour_d_appel': (378392, 33),\n'cour_de_cassation': (534258, 33)}\n\n# alternatively, you can load each jurisdiction separately\ncour_d_appel = load_dataset(\"antoinejeannot/jurisprudence\", \"cour_d_appel\")\ntribunal_judiciaire = load_dataset(\"antoinejeannot/jurisprudence\", \"tribunal_judiciaire\")\ncour_de_cassation = load_dataset(\"antoinejeannot/jurisprudence\", \"cour_de_cassation\") \n```\n\nLeveraging datasets allows you to easily ingest data to [PyTorch](https://huggingface.co/docs/datasets/use_with_pytorch), [Tensorflow](https://huggingface.co/docs/datasets/use_with_tensorflow), [Jax](https://huggingface.co/docs/datasets/use_with_jax) etc.\n\n#### BYOL: Bring Your Own Lib\nFor analysis, using polars, pandas or duckdb is quite common and also possible:\n```python\nurl = \"https://huggingface.co/datasets/antoinejeannot/jurisprudence/resolve/main/cour_de_cassation.parquet\"  # or tribunal_judiciaire.parquet, cour_d_appel.parquet\n\n# pip install polars\nimport polars as pl\ndf = pl.scan_parquet(url)\n\n# pip install pandas\nimport pandas as pd\ndf = pd.read_parquet(url)\n\n# pip install duckdb\nimport duckdb\ntable = duckdb.read_parquet(url)\n```\n\n## 🪪 Citing \u0026 Authors\n\nIf you use this code in your research, please use the following BibTeX entry:\n```bibtex\n@misc{antoinejeannot2024,\nauthor = {Jeannot Antoine and {Cour de Cassation}},\ntitle = {Jurisprudence},\nyear = {2024},\nhowpublished = {\\url{https://github.com/antoinejeannot/jurisprudence}},\nnote = {Data source: API Judilibre, \\url{https://www.data.gouv.fr/en/datasets/api-judilibre/}}\n}\n```\n\nThis project relies on the [Judilibre API par la Cour de Cassation](https://www.data.gouv.fr/en/datasets/api-judilibre/), which is made available under the Open License 2.0 (Licence Ouverte 2.0)\n\nIt scans the API every 3 days at midnight UTC and exports its data in various formats to Hugging Face, without any fundamental transformation but conversions.\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://www.etalab.gouv.fr/licence-ouverte-open-licence/\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/antoinejeannot/jurisprudence/artefacts/license.png\" width=50 alt=\"license ouverte / open license\"\u003e\u003c/a\u003e\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoinejeannot%2Fjurisprudence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoinejeannot%2Fjurisprudence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoinejeannot%2Fjurisprudence/lists"}