system HF staff commited on
Commit
a1ae038
1 Parent(s): 290b87b

Update files from the datasets library (from 1.16.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.16.0

Files changed (1) hide show
  1. xquad.py +2 -4
xquad.py CHANGED
@@ -51,9 +51,7 @@ class Xquad(datasets.GeneratorBasedBuilder):
51
 
52
  # TODO(xquad): Set up version.
53
  VERSION = datasets.Version("1.0.0")
54
- BUILDER_CONFIGS = [
55
- XquadConfig(name="xquad.{}".format(lang), description=_DESCRIPTION, lang=lang) for lang in _LANG
56
- ]
57
 
58
  def _info(self):
59
  # TODO(xquad): Specifies the datasets.DatasetInfo object
@@ -94,7 +92,7 @@ class Xquad(datasets.GeneratorBasedBuilder):
94
  # TODO(xquad): Downloads the data and defines the splits
95
  # dl_manager is a datasets.download.DownloadManager that can be used to
96
  # download and extract URLs
97
- urls_to_download = {lang: _URL + "xquad.{}.json".format(lang) for lang in _LANG}
98
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
99
 
100
  return [
51
 
52
  # TODO(xquad): Set up version.
53
  VERSION = datasets.Version("1.0.0")
54
+ BUILDER_CONFIGS = [XquadConfig(name=f"xquad.{lang}", description=_DESCRIPTION, lang=lang) for lang in _LANG]
 
 
55
 
56
  def _info(self):
57
  # TODO(xquad): Specifies the datasets.DatasetInfo object
92
  # TODO(xquad): Downloads the data and defines the splits
93
  # dl_manager is a datasets.download.DownloadManager that can be used to
94
  # download and extract URLs
95
+ urls_to_download = {lang: _URL + f"xquad.{lang}.json" for lang in _LANG}
96
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
97
 
98
  return [