--- annotations_creators: - expert-generated language_creators: - found - other languages: - fr-BE licenses: - cc-by-nc-sa-4.0 multilinguality: - monolingual pretty_name: BSARD size_categories: - unknown source_datasets: - original task_categories: - text-retrieval task_ids: - document-retrieval --- # Dataset Card for BSARD ## Table of Contents - [Table of Contents](#table-of-contents) - [Dataset Description](#dataset-description) - [Dataset Summary](#dataset-summary) - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards) - [Languages](#languages) - [Dataset Structure](#dataset-structure) - [Data Instances](#data-instances) - [Data Fields](#data-fields) - [Data Splits](#data-splits) - [Dataset Creation](#dataset-creation) - [Curation Rationale](#curation-rationale) - [Source Data](#source-data) - [Annotations](#annotations) - [Personal and Sensitive Information](#personal-and-sensitive-information) - [Considerations for Using the Data](#considerations-for-using-the-data) - [Social Impact of Dataset](#social-impact-of-dataset) - [Discussion of Biases](#discussion-of-biases) - [Other Known Limitations](#other-known-limitations) - [Additional Information](#additional-information) - [Dataset Curators](#dataset-curators) - [Licensing Information](#licensing-information) - [Citation Information](#citation-information) - [Contributions](#contributions) ## Dataset Description - **Repository:** [https://github.com/maastrichtlawtech/bsard](https://github.com/maastrichtlawtech/bsard) - **Paper:** [https://arxiv.org/abs/2108.11792](https://arxiv.org/abs/2108.11792) - **Point of Contact:** [law-techlab@maastrichtuniversity.nl](law-techlab@maastrichtuniversity.nl) ### Dataset Summary The Belgian Statutory Article Retrieval Dataset (BSARD) v1.0 is a French native corpus for studying statutory article retrieval. BSARD consists of more than 22,600 statutory articles from Belgian law and about 1,100 legal questions posed by Belgian citizens and labeled by experienced jurists with relevant articles from the corpus. ### Supported Tasks and Leaderboards - `document-retrieval`: The dataset can be used to train a model for Ad-Hoc Legal Information Retrieval. An LIR model is presented with a short user query written in natural language and asked to retrieve relevant legal information from a knowledge source (such as statutory articles). The model performance is measured by how high its [recall](https://huggingface.co/metrics/recall) score to the reference is. A [BERT-based model](https://huggingface.co/camembert-base) trained as a dense retriever to draw information from statutory articles achieves a recall@100 of 0.57. ### Languages The text in the dataset is in French, as spoken in Wallonia and Brussels-Capital region. The associated BCP-47 code is `fr-BE`. ## Dataset Structure ### Data Instances A typical data point comprises a question, with additional `category`, `subcategory`, and `extra_description` fields that elaborate on it, and a list of `article_ids` from the corpus of statutory articles that are relevant to the question. An example from the BSARD test set looks as follows: ``` {'id': '724', 'question': 'La police peut-elle me fouiller pour chercher du cannabis ?', 'category': 'Justice', 'subcategory': 'Petite délinquance', 'extra_description': 'Détenir, acheter et vendre du cannabis', 'article_ids': '13348'} ``` ### Data Fields - In *questions_fr_train.csv* and *questions_fr_test.csv*: - `id`: a `int32` feature corresponding to a unique ID number for the question. - `question`: a `string` feature corresponding to the question. - `category`: a `string` feature corresponding to the general topic of the question. - `subcategory`: a `string` feature corresponding to the sub-topic of the question. - `extra_description`: a `string` feature corresponding to the extra categorization tags of the question. - `article_ids`: a `string` feature of comma-separated article IDs relevant to the question. - In *articles_fr.csv*: - `id`: a `int32` feature corresponding to a unique ID number for the article. - `article`: a `string` feature corresponding to the full article. - `code`: a `string` feature corresponding to the law code to which the article belongs. - `article_no`: a `string` feature corresponding to the article number in the code. - `description`: a `string` feature corresponding to the concatenated headings of the article. - `law_type`: a `string` feature whose value is either *"regional"* or *"national"*. ### Data Splits This dataset is split into train/test set. Number of questions in each set is given below: | | Train | Test | | ----- | ------ | ---- | | BSARD | 886 | 222 | ## Dataset Creation ### Curation Rationale [More Information Needed] ### Source Data #### Initial Data Collection and Normalization [More Information Needed] #### Who are the source language producers? [More Information Needed] ### Annotations #### Annotation process [More Information Needed] #### Who are the annotators? [More Information Needed] ### Personal and Sensitive Information [More Information Needed] ## Considerations for Using the Data ### Social Impact of Dataset In addition to helping advance the state-of-the-art in retrieving statutes relevant to a legal question, BSARD-based models could improve the efficiency of the legal information retrieval process in the context of legal research, therefore enabling researchers to devote themselves to more thoughtful parts of their research. Furthermore, BSARD can become a starting point of new open-source legal information search tools so that the socially weaker parties to disputes can benefit from a free professional assisting service. ### Discussion of Biases [More Information Needed] ### Other Known Limitations First, the corpus of articles is limited to those collected from 32 Belgian codes, which obviously does not cover the entire Belgian law as thousands of articles from decrees, directives, and ordinances are missing. During the dataset construction, all references to these uncollected articles are ignored, which causes some questions to end up with only a fraction of their initial number of relevant articles. This information loss implies that the answer contained in the remaining relevant articles might be incomplete, although it is still appropriate. Additionally, it is essential to note that not all legal questions can be answered with statutes alone. For instance, the question “Can I evict my tenants if they make too much noise?” might not have a detailed answer within the statutory law that quantifies a specific noise threshold at which eviction is allowed. Instead, the landlord should probably rely more on case law and find precedents similar to their current situation (e.g., the tenant makes two parties a week until 2 am). Hence, some questions are better suited than others to the statutory article retrieval task, and the domain of the less suitable ones remains to be determined. ## Additional Information ### Dataset Curators The dataset was created by Antoine Louis during work done at the Law & Tech lab of Maastricht University, with the help of jurists from [Droits Quotidiens](https://www.droitsquotidiens.be/fr/equipe). ### Licensing Information BSARD is licensed under the [Creative Commons Attribution 4.0 (CC BY-NC-SA 4.0) license](https://creativecommons.org/licenses/by-nc-sa/4.0/). ### Citation Information @inproceedings{louis2021statutory, author = {Antoine Louis and Gerasimos Spanakis}, editor = {}, title = {A Statutory Article Retrieval Dataset in French}, booktitle = {}, pages = {}, publisher = {}, year = {2021}, url = {}, doi = {} } ``` ### Contributions Thanks to [@antoiloui](https://github.com/antoiloui) for adding this dataset.