Datasets:
changed subset to split
Browse files
fiqa.py
CHANGED
@@ -6,10 +6,10 @@ import datasets
|
|
6 |
logger = datasets.logging.get_logger(__name__)
|
7 |
|
8 |
_DESCRIPTION = "FIQA Dataset"
|
9 |
-
|
10 |
|
11 |
URL = ""
|
12 |
-
_URLs = {subset: URL + f"{subset}.jsonl.gz" for subset in
|
13 |
|
14 |
class BEIR(datasets.GeneratorBasedBuilder):
|
15 |
"""BEIR BenchmarkDataset."""
|
@@ -18,7 +18,7 @@ class BEIR(datasets.GeneratorBasedBuilder):
|
|
18 |
datasets.BuilderConfig(
|
19 |
name=name,
|
20 |
description=f"This is the {name} in the FiQA dataset.",
|
21 |
-
) for name in
|
22 |
]
|
23 |
|
24 |
def _info(self):
|
|
|
6 |
logger = datasets.logging.get_logger(__name__)
|
7 |
|
8 |
_DESCRIPTION = "FIQA Dataset"
|
9 |
+
_SPLITS = ["corpus", "queries"]
|
10 |
|
11 |
URL = ""
|
12 |
+
_URLs = {subset: URL + f"{subset}.jsonl.gz" for subset in _SPLITS}
|
13 |
|
14 |
class BEIR(datasets.GeneratorBasedBuilder):
|
15 |
"""BEIR BenchmarkDataset."""
|
|
|
18 |
datasets.BuilderConfig(
|
19 |
name=name,
|
20 |
description=f"This is the {name} in the FiQA dataset.",
|
21 |
+
) for name in _SPLITS
|
22 |
]
|
23 |
|
24 |
def _info(self):
|