joelito/Multi_Legal_Pile

Dataset

67

stars

38

commits

2

linked in READMEs

Jan 12, 2024

updated

README

Dataset Card for MultiLegalPile: A Large-Scale Multilingual Corpus for the Legal Domain

Table of Contents

Dataset Description

Dataset Summary

The Multi_Legal_Pile is a large-scale multilingual legal dataset suited for pretraining language models. It spans over 24 languages and five legal text types.

Supported Tasks and Leaderboards

The dataset supports the tasks of fill-mask.

Languages

The following languages are supported: bg, cs, da, de, el, en, es, et, fi, fr, ga, hr, hu, it, lt, lv, mt, nl, pl, pt, ro, sk, sl, sv

Dataset Structure

It is structured in the following format: type -> language -> jurisdiction.jsonl.xz

type is one of the following:

  • caselaw
  • contracts
  • legislation
  • other
  • legal_mc4

legal_mc4 is a subset of the other type but is listed separately so it can be easily excluded since it is less permissively licensed than the other types.

Use the dataset like this:

from datasets import load_dataset

config = 'en_contracts'  # {language}_{type}
dataset = load_dataset('joelniklaus/Multi_Legal_Pile', config, split='train', streaming=True)

'config' is a combination of language and text_type, e.g. 'en_contracts' or 'de_caselaw'. To load all the languages or all the text_types, use 'all' instead of the language or text_type (e.g., ' all_legislation').

Data Instances

The file format is jsonl.xz and there is one split available ("train").

The complete dataset (689GB) consists of four large subsets:

  • Native Multi Legal Pile (112GB)
  • Eurlex Resources (179GB)
  • Legal MC4 (106GB)
  • Pile of Law (292GB)
LanguageText TypeJurisdictionSourceSize (MB)WordsDocumentsWords/DocumentURLLicense
0bglegislationBulgariaMARCELL8015308946116827773732https://elrc-share.eu/repository/browse/marcell-bulgarian-legislative-subcorpus-v2/946267fe8d8711eb9c1a00155d026706d2c9267e5cdf4d75b5f02168f01906c6/CC0-1.0
1cscaselawCzechiaCzCDC Constitutional Court111515743364892966521936https://lindat.mff.cuni.cz/repository/xmlui/handle/11372/LRT-3052CC BY-NC 4.0
2cscaselawCzechiaCzCDC Supreme Administrative Court111515743364892966521936https://lindat.mff.cuni.cz/repository/xmlui/handle/11372/LRT-3052CC BY-NC 4.0
3cscaselawCzechiaCzCDC Supreme Court111515743364892966521936https://lindat.mff.cuni.cz/repository/xmlui/handle/11372/LRT-3052CC BY-NC 4.0
4dacaselawDenmarkDDSC3469210730560897022349https://huggingface.co/DDSCCC BY 4.0 and other, depending on the dataset
5dalegislationDenmarkDDSC107366531531462658682456https://huggingface.co/DDSCCC BY 4.0 and other, depending on the dataset
6decaselawGermanyopenlegaldata3152717854393835968002991https://de.openlegaldata.io/ODbL-1.0
7decaselawSwitzerlandentscheidsuche3152717854393835968002991https://entscheidsuche.ch/See description
8delegislationGermanyopenlegaldata89345128406632760341857https://de.openlegaldata.io/ODbL-1.0
9delegislationSwitzerlandlexfind89345128406632760341857https://www.lexfind.ch/fe/de/searchNo information provided
10frcaselawSwitzerlandentscheidsuche1831311703356904355692686https://entscheidsuche.ch/See description
11frcaselawBelgiumjurportal1831311703356904355692686https://juportal.be/home/welkomSee description
12frcaselawFranceCASS1831311703356904355692686https://echanges.dila.gouv.fr/OPENDATA/CASS/Open Licence 2.0
13frcaselawLuxembourgjudoc1831311703356904355692686https://justice.public.lu/fr.htmlSee description
14itcaselawSwitzerlandentscheidsuche64834065203361566302595https://entscheidsuche.ch/See description
15enlegislationSwitzerlandlexfind3658725376968946578053857https://www.lexfind.ch/fe/de/searchNo information provided
16enlegislationUKuk-lex3658725376968946578053857https://zenodo.org/record/6355465CC BY 4.0
17frlegislationSwitzerlandlexfind92976001707922433132466https://www.lexfind.ch/fe/fr/searchNo information provided
18frlegislationBelgiumejustice92976001707922433132466https://www.ejustice.just.fgov.be/cgi/welcome.plNo information provided
19itlegislationSwitzerlandlexfind83325425790392279682380https://www.lexfind.ch/fe/it/searchNo information provided
20nllegislationBelgiumejustice84845507885272322042372https://www.ejustice.just.fgov.be/cgi/welcome.plNo information provided
21hulegislationHungaryMARCELL5744264572303868623045https://elrc-share.eu/repository/browse/marcell-hungarian-legislative-subcorpus-v2/a87295ec8d6511eb9c1a00155d0267065f7e56dc7db34ce5aaae0b48a329daaa/CC0-1.0
22pllegislationPolandMARCELL5459299334705892643353https://elrc-share.eu/repository/browse/marcell-polish-legislative-subcorpus-v2/dd14fa1c8d6811eb9c1a00155d026706c4718ddc9c6e4a92a88923816ca8b219/CC0-1.0
23ptcaselawBrazilRulingBR1969191261176097317251236731https://github.com/diego-feijo/rulingbrNo information provided
24ptcaselawBrazilCRETA1969191261176097317251236731https://www.kaggle.com/datasets/eliasjacob/brcad5?resource=download&select=language_modeling_texts.parquetCC BY-NC-SA 4.0
25ptcaselawBrazilCJPG1969191261176097317251236731https://esaj.tjsp.jus.br/cjsg/consultaCompleta.do?f=1No information provided
26rolegislationRomaniaMARCELL104645590921532156942592https://elrc-share.eu/repository/browse/marcell-romanian-legislative-subcorpus-v2/2da548428b9d11eb9c1a00155d026706ce94a6b59ffc4b0e9fb5cd9cebe6889e/CC0-1.0
27sklegislationSlovakiaMARCELL5208280182047767603650https://elrc-share.eu/repository/browse/marcell-slovak-legislative-subcorpus-v2/6bdee1d68c8311eb9c1a00155d0267063398d3f1a3af40e1b728468dcbd6efdd/CC0-1.0
28sllegislationSloveniaMARCELL6057365513763886514123https://elrc-share.eu/repository/browse/marcell-slovenian-legislative-subcorpus-v2/e2a779868d4611eb9c1a00155d026706983c845a30d741b78e051faf91828b0d/CC-BY-4.0
totalallallall1297609xxx81214262514573050711417

Eurlex Resources

See Eurlex Resources for more information.

See Legal-MC4 for more information.

Pile-of-Law

See Pile-of-Law for more information.

LanguageTypeJurisdictionSourceSize (MB)TokensDocumentsTokens/DocumentPart of Multi_Legal_Pile
enallallall5037125054777792198724445120yes
encaselawEUechr2982837499684803346yes
encaselawCanadacanadian_decisions48645438083113434005yes
encaselawUSdol_ecab94299113541282113513no
encaselawUSscotus_oral_arguments1092108228951799613535no
encaselawUStax_rulings1704166915887540643087no
encaselawUSnlrb_decisions2652294471818320809179no
encaselawUSscotus_filings4018593870413637759311yes
encaselawUSbva_opinions3523840841400808395234864no
encaselawUScourtlistener_docket_entry_documents1390061271361486419834366409yes
encaselawUScourtlistener_opinions1581101589970496145184453518yes
encontracts--tos4391890507837no
encontractsUScfpb_creditcard_contracts1882598482426389850yes
encontractsUSedgar2869829364028109879262972yes
encontractsUSatticus_contracts78300799701370365083312287yes
enlegislationUSfre2173325682548no
enlegislationUSfrcp4427614924647no
enlegislationUSeoir62610973722292741no
enlegislation--constitutions66598486518732004yes
enlegislationUSfederal_register4243985478754147361yes
enlegislationUSuscode71678466325581352867yes
enlegislationEUeuro_parl8087134432696727376no
enlegislationUScfr1788160849007243661930yes
enlegislationUSus_bills33943207238381124832851yes
enlegislationEUeurlex35044013248291420362825no
enlegislationUSstate_codes1806618583332352178563747yes
enother--bar_exam_outlines4346924595880no
enotherUSftc_advisory_opinions45090251453510no
enotherUSolc_memos981276463513849223yes
enother--cc_casebooks2582485737873340512no
enother--un_debates3603115249784813673no
enother--r_legaladvice79872605386146671495no
enotherUSfounding_docs1118100390231183664546no
enotherUSoig50565667822443895414550yes
enotherUScongressional_hearings1644818011108923151457152no

Data Fields

[More Information Needed]

Data Splits

[More Information Needed]

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

[More Information Needed]

Discussion of Biases

[More Information Needed]

Other Known Limitations

[More Information Needed]

Additional Information

Dataset Curators

[More Information Needed]

Licensing Information

[More Information Needed]

Citation Information

@misc{niklaus2023multilegalpile,
      title={MultiLegalPile: A 689GB Multilingual Legal Corpus}, 
      author={Joel Niklaus and Veton Matoshi and Matthias Stürmer and Ilias Chalkidis and Daniel E. Ho},
      year={2023},
      eprint={2306.02069},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Contributions

Thanks to @JoelNiklaus for adding this dataset.

Contributors

joelniklaus

26 commits

Joelito

6 commits

kapllan

4 commits

capsel

1 commits

joelito/Multi_Legal_Pile

Dataset

67

stars

38

commits

2

linked in READMEs

Jan 12, 2024

updated

README

Dataset Card for MultiLegalPile: A Large-Scale Multilingual Corpus for the Legal Domain

Table of Contents

Dataset Description

Dataset Summary

The Multi_Legal_Pile is a large-scale multilingual legal dataset suited for pretraining language models. It spans over 24 languages and five legal text types.

Supported Tasks and Leaderboards

The dataset supports the tasks of fill-mask.

Languages

The following languages are supported: bg, cs, da, de, el, en, es, et, fi, fr, ga, hr, hu, it, lt, lv, mt, nl, pl, pt, ro, sk, sl, sv

Dataset Structure

It is structured in the following format: type -> language -> jurisdiction.jsonl.xz

type is one of the following:

  • caselaw
  • contracts
  • legislation
  • other
  • legal_mc4

legal_mc4 is a subset of the other type but is listed separately so it can be easily excluded since it is less permissively licensed than the other types.

Use the dataset like this:

from datasets import load_dataset

config = 'en_contracts'  # {language}_{type}
dataset = load_dataset('joelniklaus/Multi_Legal_Pile', config, split='train', streaming=True)

'config' is a combination of language and text_type, e.g. 'en_contracts' or 'de_caselaw'. To load all the languages or all the text_types, use 'all' instead of the language or text_type (e.g., ' all_legislation').

Data Instances

The file format is jsonl.xz and there is one split available ("train").

The complete dataset (689GB) consists of four large subsets:

  • Native Multi Legal Pile (112GB)
  • Eurlex Resources (179GB)
  • Legal MC4 (106GB)
  • Pile of Law (292GB)
LanguageText TypeJurisdictionSourceSize (MB)WordsDocumentsWords/DocumentURLLicense
0bglegislationBulgariaMARCELL8015308946116827773732https://elrc-share.eu/repository/browse/marcell-bulgarian-legislative-subcorpus-v2/946267fe8d8711eb9c1a00155d026706d2c9267e5cdf4d75b5f02168f01906c6/CC0-1.0
1cscaselawCzechiaCzCDC Constitutional Court111515743364892966521936https://lindat.mff.cuni.cz/repository/xmlui/handle/11372/LRT-3052CC BY-NC 4.0
2cscaselawCzechiaCzCDC Supreme Administrative Court111515743364892966521936https://lindat.mff.cuni.cz/repository/xmlui/handle/11372/LRT-3052CC BY-NC 4.0
3cscaselawCzechiaCzCDC Supreme Court111515743364892966521936https://lindat.mff.cuni.cz/repository/xmlui/handle/11372/LRT-3052CC BY-NC 4.0
4dacaselawDenmarkDDSC3469210730560897022349https://huggingface.co/DDSCCC BY 4.0 and other, depending on the dataset
5dalegislationDenmarkDDSC107366531531462658682456https://huggingface.co/DDSCCC BY 4.0 and other, depending on the dataset
6decaselawGermanyopenlegaldata3152717854393835968002991https://de.openlegaldata.io/ODbL-1.0
7decaselawSwitzerlandentscheidsuche3152717854393835968002991https://entscheidsuche.ch/See description
8delegislationGermanyopenlegaldata89345128406632760341857https://de.openlegaldata.io/ODbL-1.0
9delegislationSwitzerlandlexfind89345128406632760341857https://www.lexfind.ch/fe/de/searchNo information provided
10frcaselawSwitzerlandentscheidsuche1831311703356904355692686https://entscheidsuche.ch/See description
11frcaselawBelgiumjurportal1831311703356904355692686https://juportal.be/home/welkomSee description
12frcaselawFranceCASS1831311703356904355692686https://echanges.dila.gouv.fr/OPENDATA/CASS/Open Licence 2.0
13frcaselawLuxembourgjudoc1831311703356904355692686https://justice.public.lu/fr.htmlSee description
14itcaselawSwitzerlandentscheidsuche64834065203361566302595https://entscheidsuche.ch/See description
15enlegislationSwitzerlandlexfind3658725376968946578053857https://www.lexfind.ch/fe/de/searchNo information provided
16enlegislationUKuk-lex3658725376968946578053857https://zenodo.org/record/6355465CC BY 4.0
17frlegislationSwitzerlandlexfind92976001707922433132466https://www.lexfind.ch/fe/fr/searchNo information provided
18frlegislationBelgiumejustice92976001707922433132466https://www.ejustice.just.fgov.be/cgi/welcome.plNo information provided
19itlegislationSwitzerlandlexfind83325425790392279682380https://www.lexfind.ch/fe/it/searchNo information provided
20nllegislationBelgiumejustice84845507885272322042372https://www.ejustice.just.fgov.be/cgi/welcome.plNo information provided
21hulegislationHungaryMARCELL5744264572303868623045https://elrc-share.eu/repository/browse/marcell-hungarian-legislative-subcorpus-v2/a87295ec8d6511eb9c1a00155d0267065f7e56dc7db34ce5aaae0b48a329daaa/CC0-1.0
22pllegislationPolandMARCELL5459299334705892643353https://elrc-share.eu/repository/browse/marcell-polish-legislative-subcorpus-v2/dd14fa1c8d6811eb9c1a00155d026706c4718ddc9c6e4a92a88923816ca8b219/CC0-1.0
23ptcaselawBrazilRulingBR1969191261176097317251236731https://github.com/diego-feijo/rulingbrNo information provided
24ptcaselawBrazilCRETA1969191261176097317251236731https://www.kaggle.com/datasets/eliasjacob/brcad5?resource=download&select=language_modeling_texts.parquetCC BY-NC-SA 4.0
25ptcaselawBrazilCJPG1969191261176097317251236731https://esaj.tjsp.jus.br/cjsg/consultaCompleta.do?f=1No information provided
26rolegislationRomaniaMARCELL104645590921532156942592https://elrc-share.eu/repository/browse/marcell-romanian-legislative-subcorpus-v2/2da548428b9d11eb9c1a00155d026706ce94a6b59ffc4b0e9fb5cd9cebe6889e/CC0-1.0
27sklegislationSlovakiaMARCELL5208280182047767603650https://elrc-share.eu/repository/browse/marcell-slovak-legislative-subcorpus-v2/6bdee1d68c8311eb9c1a00155d0267063398d3f1a3af40e1b728468dcbd6efdd/CC0-1.0
28sllegislationSloveniaMARCELL6057365513763886514123https://elrc-share.eu/repository/browse/marcell-slovenian-legislative-subcorpus-v2/e2a779868d4611eb9c1a00155d026706983c845a30d741b78e051faf91828b0d/CC-BY-4.0
totalallallall1297609xxx81214262514573050711417

Eurlex Resources

See Eurlex Resources for more information.

See Legal-MC4 for more information.

Pile-of-Law

See Pile-of-Law for more information.

LanguageTypeJurisdictionSourceSize (MB)TokensDocumentsTokens/DocumentPart of Multi_Legal_Pile
enallallall5037125054777792198724445120yes
encaselawEUechr2982837499684803346yes
encaselawCanadacanadian_decisions48645438083113434005yes
encaselawUSdol_ecab94299113541282113513no
encaselawUSscotus_oral_arguments1092108228951799613535no
encaselawUStax_rulings1704166915887540643087no
encaselawUSnlrb_decisions2652294471818320809179no
encaselawUSscotus_filings4018593870413637759311yes
encaselawUSbva_opinions3523840841400808395234864no
encaselawUScourtlistener_docket_entry_documents1390061271361486419834366409yes
encaselawUScourtlistener_opinions1581101589970496145184453518yes
encontracts--tos4391890507837no
encontractsUScfpb_creditcard_contracts1882598482426389850yes
encontractsUSedgar2869829364028109879262972yes
encontractsUSatticus_contracts78300799701370365083312287yes
enlegislationUSfre2173325682548no
enlegislationUSfrcp4427614924647no
enlegislationUSeoir62610973722292741no
enlegislation--constitutions66598486518732004yes
enlegislationUSfederal_register4243985478754147361yes
enlegislationUSuscode71678466325581352867yes
enlegislationEUeuro_parl8087134432696727376no
enlegislationUScfr1788160849007243661930yes
enlegislationUSus_bills33943207238381124832851yes
enlegislationEUeurlex35044013248291420362825no
enlegislationUSstate_codes1806618583332352178563747yes
enother--bar_exam_outlines4346924595880no
enotherUSftc_advisory_opinions45090251453510no
enotherUSolc_memos981276463513849223yes
enother--cc_casebooks2582485737873340512no
enother--un_debates3603115249784813673no
enother--r_legaladvice79872605386146671495no
enotherUSfounding_docs1118100390231183664546no
enotherUSoig50565667822443895414550yes
enotherUScongressional_hearings1644818011108923151457152no

Data Fields

[More Information Needed]

Data Splits

[More Information Needed]

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

[More Information Needed]

Discussion of Biases

[More Information Needed]

Other Known Limitations

[More Information Needed]

Additional Information

Dataset Curators

[More Information Needed]

Licensing Information

[More Information Needed]

Citation Information

@misc{niklaus2023multilegalpile,
      title={MultiLegalPile: A 689GB Multilingual Legal Corpus}, 
      author={Joel Niklaus and Veton Matoshi and Matthias Stürmer and Ilias Chalkidis and Daniel E. Ho},
      year={2023},
      eprint={2306.02069},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Contributions

Thanks to @JoelNiklaus for adding this dataset.

Contributors

joelniklaus

26 commits

Joelito

6 commits

kapllan

4 commits

capsel

1 commits