Datasets:

Languages:
French
Multilinguality:
monolingual
Size Categories:
1K<n<10K
Language Creators:
crowdsourced
found
Annotations Creators:
crowdsourced
Source Datasets:
original
ArXiv:
License:
system HF staff commited on
Commit
9d04d6d
1 Parent(s): 27b0027

Update files from the datasets library (from 1.2.0)

Browse files

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

Files changed (1) hide show
  1. fquad.py +7 -4
fquad.py CHANGED
@@ -33,9 +33,12 @@ We introduce FQuAD, a native French Question Answering Dataset. FQuAD contains 2
33
  Finetuning CamemBERT on FQuAD yields a F1 score of 88% and an exact match of 77.9%.
34
 
35
  """
36
- _URL = "https://storage.googleapis.com/illuin/fquad"
37
- _TRAIN_DATA = "train.json.zip"
38
- _VALID_DATA = "valid.json.zip"
 
 
 
39
 
40
 
41
  class Fquad(datasets.GeneratorBasedBuilder):
@@ -74,7 +77,7 @@ class Fquad(datasets.GeneratorBasedBuilder):
74
  # TODO(fquad): Downloads the data and defines the splits
75
  # dl_manager is a datasets.download.DownloadManager that can be used to
76
  # download and extract URLs
77
- download_urls = {"train": os.path.join(_URL, _TRAIN_DATA), "valid": os.path.join(_URL, _VALID_DATA)}
78
  dl_dir = dl_manager.download_and_extract(download_urls)
79
  return [
80
  datasets.SplitGenerator(
 
33
  Finetuning CamemBERT on FQuAD yields a F1 score of 88% and an exact match of 77.9%.
34
 
35
  """
36
+
37
+ _URL = "https://storage.googleapis.com/illuin/fquad/"
38
+ _URLS = {
39
+ "train": _URL + "train.json.zip",
40
+ "valid": _URL + "valid.json.zip",
41
+ }
42
 
43
 
44
  class Fquad(datasets.GeneratorBasedBuilder):
 
77
  # TODO(fquad): Downloads the data and defines the splits
78
  # dl_manager is a datasets.download.DownloadManager that can be used to
79
  # download and extract URLs
80
+ download_urls = _URLS
81
  dl_dir = dl_manager.download_and_extract(download_urls)
82
  return [
83
  datasets.SplitGenerator(