--- license: cc-by-nc-sa-4.0 task_categories: - text-retrieval language: - en extra_gated_fields: Full Name: text Affiliation (Organization/University): text Designation/Status in Your Organization: text Country: country I want to use this dataset for (please provide the reason(s)): text IL-PCSR dataset is free for research use but NOT for commercial use; do you agree if you are provided with the IL-PCSR dataset, you will NOT use for any commercial purposes? Also do you agree that you will not be sharing this dataset further or uploading it anywhere else on the internet: checkbox DISCLAIMER The dataset is released for research purposes only and authors do not take any responsibility for any damage or loss arising due to usage of data or any system/model developed using the dataset: checkbox tags: - legal - indian law - legal retrieval - statute retrieval - precedent retrieval size_categories: - 1K", name="queries") print(ds_local_queries["train_queries"][0]) ``` ### 4) Building qrels (ground-truth) for retrieval evaluation ```python # Example: build a qrels-like dict mapping query id -> set(candidate_ids) def build_qrels(queries_split): qrels = {} for ex in queries_split: qid = ex["id"] # combine statute ids and precedent ids if you want a single candidate set relevant = set(ex.get("relevant_statute_ids", []) + ex.get("relevant_precedent_ids", [])) qrels[qid] = list(relevant) return qrels qrels_train = build_qrels(train_q) print("sample qrels:", list(qrels_train.items())[:2]) ``` ## Citation ```bibtex @inproceedings{il-pcsr2025, title = "IL-PCSR: Legal Corpus for Prior Case and Statute Retrieval", author = "Paul, Shounak and Ghumare, Dhananjay and Goyal, Pawan and Ghosh, Saptarshi and Modi, Ashutosh" booktitle = "Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing", month = nov, year = "2025", address = "Suzhou, China", publisher = "Association for Computational Linguistics", note = "To Appear" } ```