Datasets:

srzhang commited on
Commit
bdfbf26
·
1 Parent(s): 78295a5
Files changed (1) hide show
  1. LongConL.py +24 -0
LongConL.py CHANGED
@@ -14,6 +14,30 @@ _URLS = {
14
  "test": "data/LongConL-tasks/{task_name}/test.csv",
15
  }
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  class LongConLDataset(datasets.GeneratorBasedBuilder):
18
  """Legal opinion classification dataset for LongConL tasks"""
19
 
 
14
  "test": "data/LongConL-tasks/{task_name}/test.csv",
15
  }
16
 
17
+ _CONFIGS = {
18
+ "ATS-Jurisdiction": {
19
+ "description": "Jurisdiction-specific legal opinions",
20
+ "features": {
21
+ "Citation": datasets.Value("string"),
22
+ "Case Name": datasets.Value("string"),
23
+ "Opinion Text": datasets.Value("string"),
24
+ "Numerical Label": datasets.Value("string"), # Will be optional for some tasks
25
+ "Text Label": datasets.Value("string"),
26
+ },
27
+ },
28
+ "ATS-FavorableJudgment": {
29
+ "description": "Description for other task 1",
30
+ "features": {
31
+ "Citation": datasets.Value("string"),
32
+ "Case Name": datasets.Value("string"),
33
+ "Opinion Text": datasets.Value("string"),
34
+ "Numerical Label": datasets.Value("string"),
35
+ "Text Label": datasets.Value("string"),
36
+ },
37
+ }
38
+ }
39
+
40
+
41
  class LongConLDataset(datasets.GeneratorBasedBuilder):
42
  """Legal opinion classification dataset for LongConL tasks"""
43