Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
parquet
Languages:
Italian
Size:
10K - 100K
License:
Update files from the datasets library (from 1.2.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.2.0
- squad_it.py +7 -5
squad_it.py
CHANGED
@@ -3,7 +3,6 @@
|
|
3 |
from __future__ import absolute_import, division, print_function
|
4 |
|
5 |
import json
|
6 |
-
import os
|
7 |
|
8 |
import datasets
|
9 |
|
@@ -30,9 +29,12 @@ into Italian. It represents a large-scale dataset for open question answering pr
|
|
30 |
The dataset contains more than 60,000 question/answer pairs derived from the original English dataset. The dataset is
|
31 |
split into training and test sets to support the replicability of the benchmarking of QA systems:
|
32 |
"""
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
36 |
|
37 |
|
38 |
class SquadIt(datasets.GeneratorBasedBuilder):
|
@@ -75,7 +77,7 @@ class SquadIt(datasets.GeneratorBasedBuilder):
|
|
75 |
# TODO(squad_it): Downloads the data and defines the splits
|
76 |
# dl_manager is a datasets.download.DownloadManager that can be used to
|
77 |
# download and extract URLs
|
78 |
-
urls_to_download =
|
79 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
80 |
|
81 |
return [
|
|
|
3 |
from __future__ import absolute_import, division, print_function
|
4 |
|
5 |
import json
|
|
|
6 |
|
7 |
import datasets
|
8 |
|
|
|
29 |
The dataset contains more than 60,000 question/answer pairs derived from the original English dataset. The dataset is
|
30 |
split into training and test sets to support the replicability of the benchmarking of QA systems:
|
31 |
"""
|
32 |
+
|
33 |
+
_URL = "https://github.com/crux82/squad-it/raw/master/"
|
34 |
+
_URLS = {
|
35 |
+
"train": _URL + "SQuAD_it-train.json.gz",
|
36 |
+
"test": _URL + "SQuAD_it-test.json.gz",
|
37 |
+
}
|
38 |
|
39 |
|
40 |
class SquadIt(datasets.GeneratorBasedBuilder):
|
|
|
77 |
# TODO(squad_it): 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 |
+
urls_to_download = _URLS
|
81 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
82 |
|
83 |
return [
|