Datasets:

srzhang commited on
Commit
2750d92
·
1 Parent(s): e55621c
Files changed (1) hide show
  1. LongConL.py +3 -21
LongConL.py CHANGED
@@ -18,7 +18,7 @@ TASK_NAMES = ["ATS-Jurisdiction", "ATS-FavorableJudgment"] # Add more task name
18
 
19
  _CONFIGS = {
20
  task_name: {
21
- "description": "Jurisdiction-specific legal opinions",
22
  "features": {
23
  "Citation": datasets.Value("string"),
24
  "Full Case Name": datasets.Value("string"),
@@ -26,30 +26,12 @@ _CONFIGS = {
26
  "Numerical Label": datasets.Value("string"), # Will be optional for some tasks
27
  "Text Label": datasets.Value("string"),
28
  },
29
- },
30
- "ATS-FavorableJudgment": {
31
- "description": "Description for other task 1",
32
- "features": {
33
- "Citation": datasets.Value("string"),
34
- "Full Case Name": datasets.Value("string"),
35
- "Opinion Text": datasets.Value("string"),
36
- "Numerical Label": datasets.Value("string", id=None),
37
- "Text Label": datasets.Value("string"),
38
- },
39
- },
40
- "ATS-FavorableJudgment": {
41
- "description": "Description for other task 1",
42
- "features": {
43
- "Citation": datasets.Value("string"),
44
- "Full Case Name": datasets.Value("string"),
45
- "Opinion Text": datasets.Value("string"),
46
- "Numerical Label": datasets.Value("string", id=None),
47
- "Text Label": datasets.Value("string"),
48
- },
49
  }
 
50
  }
51
 
52
 
 
53
  class LongConLDataset(datasets.GeneratorBasedBuilder):
54
  """Legal opinion classification dataset for LongConL tasks"""
55
 
 
18
 
19
  _CONFIGS = {
20
  task_name: {
21
+ "description": f"{task_name} specific legal opinions", # Dynamic description based on task name
22
  "features": {
23
  "Citation": datasets.Value("string"),
24
  "Full Case Name": datasets.Value("string"),
 
26
  "Numerical Label": datasets.Value("string"), # Will be optional for some tasks
27
  "Text Label": datasets.Value("string"),
28
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  }
30
+ for task_name in TASK_NAMES
31
  }
32
 
33
 
34
+
35
  class LongConLDataset(datasets.GeneratorBasedBuilder):
36
  """Legal opinion classification dataset for LongConL tasks"""
37