Datasets:

ArXiv:
hugo commited on
Commit
3e62801
1 Parent(s): 4618200

Add small version (6980) of queries loader

Browse files
Files changed (1) hide show
  1. mmarco.py +4 -2
mmarco.py CHANGED
@@ -216,12 +216,14 @@ class MMarco(datasets.GeneratorBasedBuilder):
216
  elif self.config.name.startswith("queries"):
217
  urls = {
218
  "train": _BASE_URLS["queries-train"] + self.config.name[8:] + "_queries.train.tsv",
219
- "dev": _BASE_URLS["queries-dev"] + self.config.name[8:] + "_queries.dev.tsv",
 
220
  }
221
  dl_path = dl_manager.download_and_extract(urls)
222
  return [
223
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": dl_path["train"]}),
224
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": dl_path["dev"]}),
 
225
  ]
226
  elif self.config.name.startswith("runs"):
227
  urls = {
 
216
  elif self.config.name.startswith("queries"):
217
  urls = {
218
  "train": _BASE_URLS["queries-train"] + self.config.name[8:] + "_queries.train.tsv",
219
+ "validation": _BASE_URLS["queries-dev"] + self.config.name[8:] + "_queries.dev.tsv",
220
+ "dev": _BASE_URLS["queries-dev"] + self.config.name[8:] + "_queries.dev.small.tsv",
221
  }
222
  dl_path = dl_manager.download_and_extract(urls)
223
  return [
224
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": dl_path["train"]}),
225
+ datasets.SplitGenerator(name="dev.full", gen_kwargs={"filepath": dl_path["validation"]}),
226
+ datasets.SplitGenerator(name="dev", gen_kwargs={"filepath": dl_path["dev"]}),
227
  ]
228
  elif self.config.name.startswith("runs"):
229
  urls = {