conceptofmind commited on
Commit
a08d83a
1 Parent(s): a531edc

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +65 -0
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - legal
9
+ - law
10
+ - caselaw
11
+ pretty_name: Caselaw Access Project
12
+ ---
13
+
14
+ <img src="https://huggingface.co/datasets/TeraflopAI/Caselaw_Access_project/resolve/main/cap.png" width="800">
15
+
16
+ # The Caselaw Access Project
17
+
18
+ In collaboration with Ravel Law, Harvard Law Library digitized over 40 million U.S. court decisions consisting of 6.7 million cases from the last 360 years into a dataset that is widely accessible to use. Access a bulk download of the data through the Caselaw Access Project API (CAPAPI): https://case.law/caselaw/
19
+
20
+ Find more information about accessing state and federal written court decisions of common law through the bulk data service documentation here: https://case.law/docs/
21
+
22
+ Learn more about the Caselaw Access Project and all of the phenomenal work done by Jack Cushman, Greg Leppert, and Matteo Cargnelutti here: https://case.law/about/
23
+
24
+ Watch a live stream of the data release here: https://lil.law.harvard.edu/about/cap-celebration/stream
25
+
26
+ # Post-processing
27
+
28
+ Teraflop AI is excited to help support the Caselaw Access Project and Harvard Library Innovation Lab, in the release of over 6.6 million state and federal court decisions published throughout U.S. history. It is important to democratize fair access to data to the public, legal community, and researchers. This is a processed and cleaned version of the original CAP data.
29
+
30
+ During the digitization of these texts, there were erroneous OCR errors that occurred. We worked to post-process each of the texts for model training to fix encoding, normalization, repetition, redundancy, parsing, and formatting.
31
+
32
+ Teraflop AI’s data engine allows for the massively parallel processing of web-scale datasets into cleaned text form. Our one-click deployment allowed us to easily split the computation between 1000s of nodes on our managed infrastructure.
33
+
34
+ # BGE Embeddings
35
+
36
+ We additionally provide bge-base-en-v1.5 embeddings for the first 512 tokens of each state jurisdiction and federal case law as well as the post-processed documents. Mean pooling and normalization were used for the embeddings.
37
+
38
+ We used the Sentence Transformers library maintained by Tom Aarsen of Hugging Face to distribute the embedding process across multiple GPUs. You can find an example of how to use multiprocessing for embeddings [here](https://github.com/UKPLab/sentence-transformers/blob/66e0ee30843dd411c64f37f65447bb38c7bf857a/examples/applications/computing-embeddings/computing_embeddings_multi_gpu.py).
39
+
40
+ We improved the inference throughput of the embedding process by using Tri Dao’s Flash Attention. You can find the Flash Attention repository [here](https://github.com/Dao-AILab/flash-attention).
41
+
42
+ You can read the research paper on the BGE embedding models by Shitao Xiao and Zheng Liu [here](https://arxiv.org/pdf/2309.07597.pdf).
43
+
44
+ The code for training BGE embedding models and other great research efforts can be found on GitHub [here](https://github.com/FlagOpen/FlagEmbedding/tree/master/FlagEmbedding/baai_general_embedding).
45
+
46
+ All of the datasets used to train the BGE embedding models are available [here](https://data.baai.ac.cn/details/BAAI-MTP)
47
+
48
+ The bge-base-en-v1.5 model weights are available on Hugging Face. The model card provides news, a list of other available models, training, usage, and benchmark information: https://huggingface.co/BAAI/bge-base-en-v1.5
49
+
50
+ # Licensing Information
51
+
52
+ The Caselaw Access Project dataset is licensed under the [CC0 License](https://creativecommons.org/public-domain/cc0/).
53
+
54
+ # Citation Information
55
+ ```
56
+ The President and Fellows of Harvard University. "Caselaw Access Project." 2024, https://case.law/
57
+ ```
58
+ ```
59
+ @misc{ccap,
60
+ title={Cleaned Caselaw Access Project},
61
+ author={Enrico Shippole, Aran Komatsuzaki},
62
+ howpublished{\url{https://huggingface.co/datasets/TeraflopAI/Caselaw_Access_Project}},
63
+ year={2024}
64
+ }
65
+ ```