CLERC (Case Law Evaluation and Retrieval Corpus)
收藏资源简介:
CLERC(Case Law Evaluation and Retrieval Corpus)是一个专为法律案例检索和生成分析设计的数据集,由约翰斯·霍普金斯大学等机构基于哈佛法学院的Caselaw Access Project构建。该数据集包含超过184万份联邦案例文档,平均每份文档有11.54个引文。CLERC数据集的创建旨在支持法律信息检索和生成任务,通过提供高质量的训练数据,帮助法律专业人士更有效地检索相关案例并生成法律分析。该数据集的应用领域主要集中在法律智能系统的开发,旨在提高法律文档处理的效率和准确性。
CLERC (Case Law Evaluation and Retrieval Corpus) is a dataset specifically designed for legal case retrieval and generative analysis, constructed by institutions such as Johns Hopkins University based on Harvard Law School’s Caselaw Access Project. This dataset contains over 1.84 million federal case documents, with an average of 11.54 citations per document. The creation of this dataset aims to support legal information retrieval and generative tasks, providing high-quality training data to help legal professionals more efficiently retrieve relevant cases and generate legal analyses. Its main application fields focus on the development of legal intelligent systems, with the goal of enhancing the efficiency and accuracy of legal document processing.
CLERC 数据集概述
简介
CLERC 是一个用于法律案件检索和检索增强分析生成的数据集,基于 Caselaw Access Project (CAP) 构建。该数据集旨在支持法律信息检索(IR)和检索增强生成(RAG)任务的模型训练和评估。
贡献
- 通过与法律专业人士合作,CLERC 提供了一种平衡法律专业人士需求和计算可行性的法律案件检索和生成任务的表述。
- 构建了一个开源管道,将 CAP 转换为适用于法律 IR 和 RAG 任务的大规模、高质量数据集。
- 对长上下文案件检索和检索增强法律分析生成进行了全面评估,揭示了信息检索模型在检索相关文档方面的困难,以及大型语言模型(LLMs)经常产生幻觉的问题。
数据集子集
CLERC 数据集分为两个主要子集:检索和生成。
检索子集
安装步骤
- 创建 Python 环境:
python -m venv clerc-ret - 激活环境:
source clerc-ret/bin/activate - 安装依赖:
pip install -r requirements
处理流程
- process_raw:将 CAP 的 .jsonl.xz 文件处理为 .tsv 语料库(CLERC/doc)。
- build_collections:使用滑动窗口将 CLERC/doc 分块为段落集合(CLERC/passage)。
- build_queries:将 CLERC/doc 转换为查询,并根据直接/间接、单移除/全移除进行分类。
- filter_queries:从查询中识别并提取中心引用句子,使用 eyecite 支持。
- build_qrels:将查询标准化为 MSMarco 格式,并提供用于评估查询的相关性文件(文档级和段落级)。
- build_pos_train_collection_rerank 和 build_rerank_triples:用于构建段落级三元组,详情见 Building-Passage-level-Triples。
生成子集
详情请参考论文和 README in the generation subdirectory。
引用
@article{abe2024clerc, title={CLERC: A Dataset for Legal Case Retrieval and Retrieval-Augmented Analysis Generation}, author={Abe Bohan Hou and Orion Weller and Guanghui Qin and Eugene Yang and Dawn Lawrie and Nils Holzenberger and Andrew Blair-Stanek and Benjamin Van Durme}, journal={ArXiv}, year={2024}, url={https://arxiv.org/pdf/2406.17186} }




