Update LongConL.py
Browse files- LongConL.py +3 -0
LongConL.py
CHANGED
|
@@ -29,6 +29,7 @@ _CONFIGS = {
|
|
| 29 |
task_name: {
|
| 30 |
"description": f"{task_name} specific legal opinions", # Dynamic description based on task name
|
| 31 |
"features": {
|
|
|
|
| 32 |
"Citation": datasets.Value("string"),
|
| 33 |
"Full Case Name": datasets.Value("string"),
|
| 34 |
"Opinion Text": datasets.Value("string"),
|
|
@@ -46,6 +47,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
|
|
| 46 |
def _info(self):
|
| 47 |
"""Return dataset information."""
|
| 48 |
features = datasets.Features({
|
|
|
|
| 49 |
"Citation": datasets.Value("string"),
|
| 50 |
"Full Case Name": datasets.Value("string"),
|
| 51 |
"Opinion Text": datasets.Value("string"),
|
|
@@ -94,6 +96,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
|
|
| 94 |
|
| 95 |
for id_, row in enumerate(data_dict):
|
| 96 |
yield id_, {
|
|
|
|
| 97 |
"Citation": row["Citation"],
|
| 98 |
"Full Case Name": row["Full Case Name"],
|
| 99 |
"Opinion Text": row["Opinion Text"],
|
|
|
|
| 29 |
task_name: {
|
| 30 |
"description": f"{task_name} specific legal opinions", # Dynamic description based on task name
|
| 31 |
"features": {
|
| 32 |
+
"idx": datasets.Value("string"),
|
| 33 |
"Citation": datasets.Value("string"),
|
| 34 |
"Full Case Name": datasets.Value("string"),
|
| 35 |
"Opinion Text": datasets.Value("string"),
|
|
|
|
| 47 |
def _info(self):
|
| 48 |
"""Return dataset information."""
|
| 49 |
features = datasets.Features({
|
| 50 |
+
"idx": datasets.Value("string"),
|
| 51 |
"Citation": datasets.Value("string"),
|
| 52 |
"Full Case Name": datasets.Value("string"),
|
| 53 |
"Opinion Text": datasets.Value("string"),
|
|
|
|
| 96 |
|
| 97 |
for id_, row in enumerate(data_dict):
|
| 98 |
yield id_, {
|
| 99 |
+
"idx": row["idx"],
|
| 100 |
"Citation": row["Citation"],
|
| 101 |
"Full Case Name": row["Full Case Name"],
|
| 102 |
"Opinion Text": row["Opinion Text"],
|