nthakur commited on
Commit
41b686a
1 Parent(s): 01557ca

changed subset to split

Browse files
Files changed (1) hide show
  1. fiqa.py +3 -3
fiqa.py CHANGED
@@ -6,10 +6,10 @@ import datasets
6
  logger = datasets.logging.get_logger(__name__)
7
 
8
  _DESCRIPTION = "FIQA Dataset"
9
- _SUBSETS = ["corpus", "queries"]
10
 
11
  URL = ""
12
- _URLs = {subset: URL + f"{subset}.jsonl.gz" for subset in _SUBSETS}
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 _SUBSETS
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):