CoolFace
Datasetpublic

lexlms/lex_files_preprocessed

Dataset Card for "LexFiles" Dataset Summary Disclaimer: This is a pre-proccessed version of the LexFiles corpus (https://huggingface.co/datasets/lexlms/lexfiles), where documents are pre-split in chunks of 512 tokens. The LeXFiles is a new diverse English multinational legal corpus that we created including 11 distinct sub-corpora that cover legislation and case law from 6 primarily English-speaking legal systems (EU, CoE, Canada, US, UK, India). The corpus… See the full description on the dataset page: https://huggingface.co/datasets/lexlms/lex_files_preprocessed.

sourceHugging Facecc-by-nc-sa-4.0updated 3y agoView on Hugging Face
4likes96downloads
Dataset Card

Dataset Card for "LexFiles"

Table of Contents

Dataset Description

  • Homepage: https://github.com/coastalcph/lexlms
  • Repository: https://github.com/coastalcph/lexlms
  • Paper: https://arxiv.org/abs/xxx
  • Point of Contact: Ilias Chalkidis

Dataset Summary

Disclaimer: This is a pre-proccessed version of the LexFiles corpus (https://huggingface.co/datasets/lexlms/lexfiles), where documents are pre-split in chunks of 512 tokens.

The LeXFiles is a new diverse English multinational legal corpus that we created including 11 distinct sub-corpora that cover legislation and case law from 6 primarily English-speaking legal systems (EU, CoE, Canada, US, UK, India). The corpus contains approx. 19 billion tokens. In comparison, the "Pile of Law" corpus released by Hendersons et al. (2022) comprises 32 billion in total, where the majority (26/30) of sub-corpora come from the United States of America (USA), hence the corpus as a whole is biased towards the US legal system in general, and the federal or state jurisdiction in particular, to a significant extent.

Dataset Specifications

CorpusCorpus aliasDocumentsTokensPct.Sampl. (a=0.5)Sampl. (a=0.2)
EU Legislationeu-legislation93.7K233.7M1.2%5.0%8.0%
EU Court Decisionseu-court-cases29.8K178.5M0.9%4.3%7.6%
ECtHR Decisionsecthr-cases12.5K78.5M0.4%2.9%6.5%
UK Legislationuk-legislation52.5K143.6M0.7%3.9%7.3%
UK Court Decisionsuk-court-cases47K368.4M1.9%6.2%8.8%
Indian Court Decisionsindian-court-cases34.8K111.6M0.6%3.4%6.9%
Canadian Legislationcanadian-legislation6K33.5M0.2%1.9%5.5%
Canadian Court Decisionscanadian-court-cases11.3K33.1M0.2%1.8%5.4%
U.S. Court Decisions [1]court-listener4.6M11.4B59.2%34.7%17.5%
U.S. Legislationus-legislation5181.4B7.4%12.3%11.5%
U.S. Contractsus-contracts622K5.3B27.3%23.6%15.0%
Totallexlms/lexfiles5.8M18.8B100%100%100%

[1] We consider only U.S. Court Decisions from 1965 onwards (cf. post Civil Rights Act), as a hard threshold for cases relying on severely out-dated and in many cases harmful law standards. The rest of the corpora include more recent documents.

[2] Sampling (Sampl.) ratios are computed following the exponential sampling introduced by Lample et al. (2019).

Additional corpora not considered for pre-training, since they do not represent factual legal knowledge.

CorpusCorpus aliasDocumentsTokens
Legal web pages from C4legal-c4284K340M

Citation

*Ilias Chalkidis\*, Nicolas Garneau\*, Catalina E.C. Goanta, Daniel Martin Katz, and Anders Søgaard.* *LeXFiles and LegalLAMA: Facilitating English Multinational Legal Language Model Development.* *2022. In the Proceedings of the 61th Annual Meeting of the Association for Computational Linguistics. Toronto, Canada.*

@inproceedings{chalkidis-garneau-etal-2023-lexlms,
    title = {{LeXFiles and LegalLAMA: Facilitating English Multinational Legal Language Model Development}},
    author = "Chalkidis*, Ilias and 
              Garneau*, Nicolas and
              Goanta, Catalina and 
              Katz, Daniel Martin and 
              Søgaard, Anders",
    booktitle = "Proceedings of the 61h Annual Meeting of the Association for Computational Linguistics",
    month = june,
    year = "2023",
    address = "Toronto, Canada",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/xxx",
}