Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
json
Size:
1K - 10K
ArXiv:
Tags:
lost-in-the-middle
License:
Update LITM.py
Browse files
LITM.py
CHANGED
|
@@ -51,7 +51,7 @@ class LITM(datasets.GeneratorBasedBuilder):
|
|
| 51 |
def _info(self):
|
| 52 |
features = datasets.Features(
|
| 53 |
{
|
| 54 |
-
"context": datasets.Value("string")
|
| 55 |
"query": datasets.Value("string"),
|
| 56 |
"answers": [datasets.Value("string")],
|
| 57 |
"gold_index": datasets.Value("int32"),
|
|
|
|
| 51 |
def _info(self):
|
| 52 |
features = datasets.Features(
|
| 53 |
{
|
| 54 |
+
"context": [[datasets.Value("string")]] if self.config.name.startswith("kv") else [datasets.Value("string")],
|
| 55 |
"query": datasets.Value("string"),
|
| 56 |
"answers": [datasets.Value("string")],
|
| 57 |
"gold_index": datasets.Value("int32"),
|