Datasets:

srzhang commited on
Commit
897700a
·
verified ·
1 Parent(s): 1ef261d

Update LongConL.py

Browse files
Files changed (1) hide show
  1. LongConL.py +5 -2
LongConL.py CHANGED
@@ -34,7 +34,8 @@ _CONFIGS = {
34
  "Full Case Name": datasets.Value("string"),
35
  "Opinion Text": datasets.Value("string"),
36
  "Numerical Label": datasets.Value("string"), # Will be optional for some tasks
37
- "Text Label": datasets.Value("string"),
 
38
  },
39
  }
40
  for task_name in TASK_NAMES
@@ -52,7 +53,8 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
52
  "Full Case Name": datasets.Value("string"),
53
  "Opinion Text": datasets.Value("string"),
54
  "Numerical Label": datasets.Value("string"), # Will be optional for some tasks
55
- "Text Label": datasets.Value("string"),
 
56
  })
57
  return datasets.DatasetInfo(
58
  description=_DESCRIPTION,
@@ -102,6 +104,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
102
  "Opinion Text": row["Opinion Text"],
103
  "Numerical Label": row.get("Numerical Label", None), # Use .get() to handle missing keys
104
  "Text Label": row["Text Label"],
 
105
  }
106
 
107
  # Use a dynamic config
 
34
  "Full Case Name": datasets.Value("string"),
35
  "Opinion Text": datasets.Value("string"),
36
  "Numerical Label": datasets.Value("string"), # Will be optional for some tasks
37
+ "Text Label": datasets.Value("string"), # Will be optional for some tasks
38
+ "Syllabus": datasets.Value("string") # Will be optional for some tasks
39
  },
40
  }
41
  for task_name in TASK_NAMES
 
53
  "Full Case Name": datasets.Value("string"),
54
  "Opinion Text": datasets.Value("string"),
55
  "Numerical Label": datasets.Value("string"), # Will be optional for some tasks
56
+ "Text Label": datasets.Value("string"), # Will be optional for some tasks
57
+ "Syllabus": datasets.Value("string") # Will be optional for some tasks
58
  })
59
  return datasets.DatasetInfo(
60
  description=_DESCRIPTION,
 
104
  "Opinion Text": row["Opinion Text"],
105
  "Numerical Label": row.get("Numerical Label", None), # Use .get() to handle missing keys
106
  "Text Label": row["Text Label"],
107
+ "Syllabus": row["Syllabus"]
108
  }
109
 
110
  # Use a dynamic config