Improve dataset card with description and task category

#1
by nielsr HF staff - opened
Files changed (1) hide show
  1. README.md +49 -3
README.md CHANGED
@@ -1,9 +1,55 @@
1
  ---
2
- license: cc-by-sa-4.0
3
  language:
4
  - zh
 
5
  configs:
6
- - config_name: Data
7
- data_files: CaseGen.json
 
 
 
 
 
 
8
  ---
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  language:
3
  - zh
4
+ license: cc-by-sa-4.0
5
  configs:
6
+ - config_name: Data
7
+ data_files: CaseGen.json
8
+ task_categories:
9
+ - text-generation
10
+ tags:
11
+ - legal
12
+ - chinese
13
+ - multi-stage-generation
14
  ---
15
 
16
+ # CaseGen: A Benchmark for Multi-Stage Legal Case Documents Generation
17
+
18
+ <div align="center">
19
+ <img src="./fig/CaseGen.png" style="width: 40%;height: 40%">
20
+ </div>
21
+
22
+ **CaseGen** is a benchmark designed to evaluate large language models (LLMs) in the generation of legal case documents in the Chinese legal domain. The dataset includes 500 real-world legal case instances, each structured into seven sections: Prosecution, Defense, Evidence, Events, Facts, Reasoning, and Judgment. It supports four key tasks: drafting defense statements, writing trial facts, composing legal reasoning, and generating judgment results.
23
+
24
+ This repository contains both the dataset and the code for evaluating the performance of LLMs in generating legal case documents. It provides a multi-stage generation task framework and an automated evaluation pipeline using LLMs as evaluators.
25
+
26
+
27
+ ## Task Description
28
+
29
+ CaseGen includes four key tasks:
30
+
31
+ 1. **Drafting Defense Statements**: Respond to the prosecution’s claims based on evidence.
32
+ 2. **Writing Trial Facts**: Construct trial facts by verifying the true course of events.
33
+ 3. **Composing Legal Reasoning**: Analyze the case facts and apply legal principles for the court's reasoning.
34
+ 4. **Generating Judgment Results**: Formulate the final ruling based on trial facts and legal reasoning.
35
+
36
+
37
+ ## Data
38
+
39
+ The data was collected from publicly available legal resources, with a strong emphasis on maintaining data integrity and quality. The case documents have been pre-processed and annotated by legal experts. Evidence details are annotated for completeness, and the data is formatted in JSON for ease of use.
40
+ An example of a case is:
41
+ ```json
42
+ {
43
+ "id": 0,
44
+ "title": " ",
45
+ "full_text": " ",
46
+ "defense": " ",
47
+ "fact": " ",
48
+ "reasoning": " ",
49
+ "event": { },
50
+ "evidence": { }
51
+ }
52
+ ```
53
+
54
+ ## License
55
+ CaseGen is released under the **CC BY-NC-SA 4.0** license. It is available for non-commercial academic use. Commercial use requires additional authorization.