system HF staff commited on
Commit
1b96323
1 Parent(s): 6343978

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_r.py +2 -2
xquad_r.py CHANGED
@@ -67,7 +67,7 @@ class XquadR(datasets.GeneratorBasedBuilder):
67
 
68
  # TODO(xquad-r): Set up version.
69
  VERSION = datasets.Version("1.1.0")
70
- BUILDER_CONFIGS = [XquadRConfig(name="{}".format(lang), description=_DESCRIPTION, lang=lang) for lang in _LANG]
71
 
72
  def _info(self):
73
  # TODO(xquad-r): Specifies the datasets.DatasetInfo object
@@ -102,7 +102,7 @@ class XquadR(datasets.GeneratorBasedBuilder):
102
  # TODO(xquad-r): Downloads the data and defines the splits
103
  # dl_manager is a datasets.download.DownloadManager that can be used to
104
  # download and extract URLs
105
- urls_to_download = {lang: _URL + "{}.json".format(lang) for lang in _LANG}
106
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
107
 
108
  return [
67
 
68
  # TODO(xquad-r): Set up version.
69
  VERSION = datasets.Version("1.1.0")
70
+ BUILDER_CONFIGS = [XquadRConfig(name=f"{lang}", description=_DESCRIPTION, lang=lang) for lang in _LANG]
71
 
72
  def _info(self):
73
  # TODO(xquad-r): Specifies the datasets.DatasetInfo object
102
  # TODO(xquad-r): Downloads the data and defines the splits
103
  # dl_manager is a datasets.download.DownloadManager that can be used to
104
  # download and extract URLs
105
+ urls_to_download = {lang: _URL + f"{lang}.json" for lang in _LANG}
106
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
107
 
108
  return [