Update files from the datasets library (from 1.2.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.2.0
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 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
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 =
|
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(
|