knockknock404 commited on
Commit
0fc2ad2
·
verified ·
1 Parent(s): 91066e7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -3
README.md CHANGED
@@ -22,7 +22,26 @@ To fairly evaluate the legal judgment prediction capabilities of large models, w
22
  from datasets import load_dataset
23
  dataset = load_dataset("knockknock404/PCJD", "all", split="test")
24
  # Load "Original Set"(ori)
25
- dataset_math = load_dataset("knockknock404/PCJD", "ori", split="test")
26
  # Load "Adversarial Set"
27
- dataset_math = load_dataset("knockknock404/PCJD", "adv", split="test")
28
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  from datasets import load_dataset
23
  dataset = load_dataset("knockknock404/PCJD", "all", split="test")
24
  # Load "Original Set"(ori)
25
+ dataset_ori = load_dataset("knockknock404/PCJD", "ori", split="test")
26
  # Load "Adversarial Set"
27
+ dataset_adv = load_dataset("knockknock404/PCJD", "adv", split="test")
28
+ ```
29
+
30
+ ## composition
31
+ The PCJD consists of two components: the "Original Set"(ori) and the "Adversarial Set"(adv).
32
+ - **ori**: Contains 803 test samples and 176 training samples covering 176 different criminal charges. By default, "Procuratorate" is selected as the text input.
33
+ - **ori**: Contains 803 test samples and 176 training samples covering 176 different criminal charges. Based on ori, the samples with the highest cosine similarity to high-frequency charges are selected as adversarial examples.
34
+
35
+ ## format
36
+ The input for baseline testing meets the following format:
37
+ ```python
38
+ 根据案情描述和已有步骤仅给出一个推理。如果是结论则直接输出<e></e>,例如<e>盗窃罪</e>。如果是步骤则直接输出<p></p>,例如<p>步骤1:…</p>\n案情描述:input\n已有推理步骤:\nsteps\n
39
+ ```
40
+ In this regard, we have provided a simple processing method in the ‘\code’:
41
+ ```python
42
+ from main import get_args
43
+ args = get_args()
44
+ warp = WarpLJP(args=args)
45
+ for data in dataset:
46
+ x,_,y = warp.processing_single(data)
47
+ ```