Datasets:

Languages:
Portuguese
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
crowdsourced
Annotations Creators:
crowdsourced
Source Datasets:
original
ArXiv:
Tags:
License:
system HF staff commited on
Commit
9c6920d
1 Parent(s): b589a50

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. squad_v1_pt.py +7 -5
squad_v1_pt.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
 
@@ -27,9 +26,12 @@ archivePrefix = {arXiv},
27
  _DESCRIPTION = """\
28
  Portuguese translation of the SQuAD dataset. The translation was performed automatically using the Google Cloud API.
29
  """
30
- _URL = "https://github.com/nunorc/squad-v1.1-pt/raw/master"
31
- _TRAIN_FILE = "train-v1.1-pt.json"
32
- _DEV_FILE = "dev-v1.1-pt.json"
 
 
 
33
 
34
 
35
  class SquadV1Pt(datasets.GeneratorBasedBuilder):
@@ -73,7 +75,7 @@ class SquadV1Pt(datasets.GeneratorBasedBuilder):
73
  # TODO(squad_v1_pt): Downloads the data and defines the splits
74
  # dl_manager is a datasets.download.DownloadManager that can be used to
75
  # download and extract URLs
76
- urls_to_download = {"train": os.path.join(_URL, _TRAIN_FILE), "dev": os.path.join(_URL, _DEV_FILE)}
77
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
78
 
79
  return [
3
  from __future__ import absolute_import, division, print_function
4
 
5
  import json
 
6
 
7
  import datasets
8
 
26
  _DESCRIPTION = """\
27
  Portuguese translation of the SQuAD dataset. The translation was performed automatically using the Google Cloud API.
28
  """
29
+
30
+ _URL = "https://github.com/nunorc/squad-v1.1-pt/raw/master/"
31
+ _URLS = {
32
+ "train": _URL + "train-v1.1-pt.json",
33
+ "dev": _URL + "dev-v1.1-pt.json",
34
+ }
35
 
36
 
37
  class SquadV1Pt(datasets.GeneratorBasedBuilder):
75
  # TODO(squad_v1_pt): 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 = _URLS
79
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
80
 
81
  return [