Datasets:

srzhang commited on
Commit
624a033
·
verified ·
1 Parent(s): 2780dc9

Update LongConL.py

Browse files
Files changed (1) hide show
  1. LongConL.py +3 -3
LongConL.py CHANGED
@@ -34,7 +34,7 @@ _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"), # Will be optional for some tasks
38
  #"DC Numerical Label": datasets.Value("string")
39
  #"Syllabus": datasets.Value("string") # Will be optional for some tasks
40
  },
@@ -54,7 +54,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
54
  "Full Case Name": datasets.Value("string"),
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": datasets.Value("string")
59
  #"Syllabus": datasets.Value("string") # Will be optional for some tasks
60
  })
@@ -105,7 +105,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
105
  "Full Case Name": row["Full Case Name"],
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
  }
 
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
  #"DC Numerical Label": datasets.Value("string")
39
  #"Syllabus": datasets.Value("string") # Will be optional for some tasks
40
  },
 
54
  "Full Case Name": datasets.Value("string"),
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": datasets.Value("string")
59
  #"Syllabus": datasets.Value("string") # Will be optional for some tasks
60
  })
 
105
  "Full Case Name": row["Full Case Name"],
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
  }