Datasets:

srzhang commited on
Commit
73e2b37
·
verified ·
1 Parent(s): 93203d2

Update LongConL.py

Browse files
Files changed (1) hide show
  1. LongConL.py +3 -0
LongConL.py CHANGED
@@ -35,6 +35,7 @@ _CONFIGS = {
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
  }
@@ -54,6 +55,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
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(
@@ -104,6 +106,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
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
 
 
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
+ "DC Numerical Label": row["DC Numerical Label"]
39
  #"Syllabus": datasets.Value("string") # Will be optional for some tasks
40
  },
41
  }
 
55
  "Opinion Text": datasets.Value("string"),
56
  "Numerical Label": datasets.Value("string"), # Will be optional for some tasks
57
  "Text Label": datasets.Value("string"), # Will be optional for some tasks
58
+ "DC Numerical Label": row["DC Numerical Label"]
59
  #"Syllabus": datasets.Value("string") # Will be optional for some tasks
60
  })
61
  return datasets.DatasetInfo(
 
106
  "Opinion Text": row["Opinion Text"],
107
  "Numerical Label": row.get("Numerical Label", None), # Use .get() to handle missing keys
108
  "Text Label": row["Text Label"],
109
+ "DC Numerical Label": row["DC Numerical Label"]
110
  #"Syllabus": row["Syllabus"]
111
  }
112