AjayMukundS commited on
Commit
aaac35f
1 Parent(s): c34b690

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +52 -0
README.md CHANGED
@@ -20,3 +20,55 @@ configs:
20
  - split: test
21
  path: data/test-*
22
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  - split: test
21
  path: data/test-*
22
  ---
23
+
24
+ # Reformatted Legal Text Summarization Dataset
25
+
26
+ ## Overview
27
+
28
+ This dataset is a restructured version of a Legal Text Summarization dataset, specifically filtered to include only entries from the `IN-Abs` dataset. The dataset consists of pairs of legal judgements and their corresponding summaries. Each judgement-summary pair is formatted into an **Instruction-Prompt style format** suitable for training language models for tasks like Summarization and Legal Text Analysis.
29
+
30
+ ## Dataset Structure
31
+
32
+ - **Column Name:** `Judgement-Summary Pairs`
33
+ - **Format:** The dataset contains one column named "Judgement-Summary Pairs", which holds the formatted instruction-prompt pairs. Each entry is a structured pair of a legal judgement and its corresponding summary.
34
+
35
+ ### Example of an Entry:
36
+
37
+ ```plaintext
38
+ <s>[INST] Summarize the following judgement: [Judgement Text] [/INST] [Summary Text] </s>
39
+ ```
40
+ Where:
41
+ [Judgement Text] is the original legal judgement text.
42
+ [Summary Text] is the summary of the judgement.
43
+
44
+ ### Sample Entry:
45
+
46
+ ```plaintext
47
+ <s>[INST] Summarize the following judgement: The court finds that the defendant was not responsible for the damages caused as there was insufficient evidence to support the claims made by the plaintiff. [/INST] The court ruled in favor of the defendant due to lack of evidence. </s>
48
+ ```
49
+
50
+ ## Data Preparation Process:
51
+ The dataset was prepared using the following steps:
52
+ - Filtering: The dataset was filtered to include only entries from the IN-Abs dataset.
53
+ - Transformation: Each judgement and its corresponding summary were formatted into instruction-prompt pairs using the following template:
54
+ - ```plaintext
55
+ <s>[INST] Summarize the following judgement: {judgement_text} [/INST] {summary_text} </s>
56
+ ```
57
+ - Column Removal: All columns except the newly created "Judgement-Summary Pairs" were removed to streamline the dataset for usage.
58
+
59
+ ## Usage
60
+ The reformatted dataset is suitable for training language models on legal text summarization tasks. Here’s how you can use it:
61
+
62
+ - **Load the Dataset**: Use a data loading library like datasets or pandas to read the dataset.
63
+ - **Training a Model**: You can train a model using the instruction-prompt pairs provided in the dataset. Each pair serves as an input-output example for supervised learning, particularly in the fields of natural language processing (NLP) and legal AI.
64
+ - **Fine-tuning Existing Models**: Fine-tune pre-trained models such as GPT, BERT, or LLaMA on this dataset to adapt them for legal text summarization tasks.
65
+
66
+ ### License
67
+ The dataset is made available for educational and research purposes. Please ensure that you have the appropriate permissions and rights to use the original data before utilizing this reformatted version.
68
+
69
+ ### Acknowledgements
70
+ The dataset preparation and transformation were inspired by the need to improve legal text summarization and the creation of structured datasets for NLP tasks.
71
+ Special thanks to the original data providers and contributors to legal text summarization research
72
+
73
+ ### Contact
74
+ For questions or further information, please contact **Ajay Mukund S** at *[email protected]*.