Datasets:

srzhang commited on
Commit
a57aced
·
verified ·
1 Parent(s): e3b342c

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
  "Syllabus": datasets.Value("string") # Will be optional for some tasks
39
  },
40
  }
@@ -53,7 +53,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
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(
@@ -103,7 +103,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
103
  "Full Case Name": row["Full Case Name"],
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
 
 
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
  }
 
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(
 
103
  "Full Case Name": row["Full Case Name"],
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