Update OpinionBench.py
Browse files- OpinionBench.py +3 -3
OpinionBench.py
CHANGED
|
@@ -62,7 +62,7 @@ _CONFIGS = {
|
|
| 62 |
"Full Case Name": datasets.Value("string"),
|
| 63 |
"Opinion Text": datasets.Value("string"),
|
| 64 |
"Numerical Label": datasets.Value("string"), # Will be optional for some tasks
|
| 65 |
-
|
| 66 |
#"DC Numerical Label": datasets.Value("string")
|
| 67 |
#"Syllabus": datasets.Value("string") # Will be optional for some tasks
|
| 68 |
},
|
|
@@ -82,7 +82,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
|
|
| 82 |
"Full Case Name": datasets.Value("string"),
|
| 83 |
"Opinion Text": datasets.Value("string"),
|
| 84 |
"Numerical Label": datasets.Value("string"), # Will be optional for some tasks
|
| 85 |
-
|
| 86 |
#"DC Numerical Label": datasets.Value("string")
|
| 87 |
#"Syllabus": datasets.Value("string") # Will be optional for some tasks
|
| 88 |
})
|
|
@@ -139,7 +139,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
|
|
| 139 |
"Full Case Name": row["Full Case Name"],
|
| 140 |
"Opinion Text": row["Opinion Text"],
|
| 141 |
"Numerical Label": row.get("Numerical Label", None), # Use .get() to handle missing keys
|
| 142 |
-
|
| 143 |
#"DC Numerical Label": row["DC Numerical Label"]
|
| 144 |
#"Syllabus": row["Syllabus"]
|
| 145 |
}
|
|
|
|
| 62 |
"Full Case Name": datasets.Value("string"),
|
| 63 |
"Opinion Text": datasets.Value("string"),
|
| 64 |
"Numerical Label": datasets.Value("string"), # Will be optional for some tasks
|
| 65 |
+
"Text Label": datasets.Value("string"), # Will be optional for some tasks
|
| 66 |
#"DC Numerical Label": datasets.Value("string")
|
| 67 |
#"Syllabus": datasets.Value("string") # Will be optional for some tasks
|
| 68 |
},
|
|
|
|
| 82 |
"Full Case Name": datasets.Value("string"),
|
| 83 |
"Opinion Text": datasets.Value("string"),
|
| 84 |
"Numerical Label": datasets.Value("string"), # Will be optional for some tasks
|
| 85 |
+
"Text Label": datasets.Value("string"), # Will be optional for some tasks
|
| 86 |
#"DC Numerical Label": datasets.Value("string")
|
| 87 |
#"Syllabus": datasets.Value("string") # Will be optional for some tasks
|
| 88 |
})
|
|
|
|
| 139 |
"Full Case Name": row["Full Case Name"],
|
| 140 |
"Opinion Text": row["Opinion Text"],
|
| 141 |
"Numerical Label": row.get("Numerical Label", None), # Use .get() to handle missing keys
|
| 142 |
+
"Text Label": row["Text Label"],
|
| 143 |
#"DC Numerical Label": row["DC Numerical Label"]
|
| 144 |
#"Syllabus": row["Syllabus"]
|
| 145 |
}
|