albertvillanova HF staff commited on
Commit
58b71ec
1 Parent(s): 0edc15a

Fix viewer IndexError by hosting data file (#3)

Browse files

- Host data file (c52fa348f5085104b41b44b5ddd31c5f0eac6011)
- Update loading script (0663f3a0bc9e052f8ca626384ce335f8b1c91560)
- Update dataset card (a17545b87a0921bebd71fd61f843561b9931e123)
- Delete legacy metadata JSON file (5c4eca9e9e1ae094520a548ced3b5d09ab80aba2)

Files changed (4) hide show
  1. README.md +1 -0
  2. data/tapaco_v1.0.zip +3 -0
  3. dataset_infos.json +0 -0
  4. tapaco.py +4 -5
README.md CHANGED
@@ -1687,6 +1687,7 @@ config_names:
1687
 
1688
  - **Homepage:** [TaPaCo: A Corpus of Sentential Paraphrases for 73 Languages](https://zenodo.org/record/3707949#.X9Dh0cYza3I)
1689
  - **Paper:** [TaPaCo: A Corpus of Sentential Paraphrases for 73 Languages](https://www.aclweb.org/anthology/2020.lrec-1.848.pdf)
 
1690
  - **Point of Contact:** [Yves Scherrer](https://blogs.helsinki.fi/yvesscherrer/)
1691
 
1692
  ### Dataset Summary
 
1687
 
1688
  - **Homepage:** [TaPaCo: A Corpus of Sentential Paraphrases for 73 Languages](https://zenodo.org/record/3707949#.X9Dh0cYza3I)
1689
  - **Paper:** [TaPaCo: A Corpus of Sentential Paraphrases for 73 Languages](https://www.aclweb.org/anthology/2020.lrec-1.848.pdf)
1690
+ - **Data:** https://doi.org/10.5281/zenodo.3707949
1691
  - **Point of Contact:** [Yves Scherrer](https://blogs.helsinki.fi/yvesscherrer/)
1692
 
1693
  ### Dataset Summary
data/tapaco_v1.0.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8463e8087df02ad1a077a12b8316a29fb1e2f3a8dac328841044611e75c67ff
3
+ size 32213126
dataset_infos.json DELETED
The diff for this file is too large to render. See raw diff
 
tapaco.py CHANGED
@@ -54,9 +54,8 @@ _HOMEPAGE = "https://zenodo.org/record/3707949#.X9Dh0cYza3I"
54
  _LICENSE = "Creative Commons Attribution 2.0 Generic"
55
 
56
 
57
- _URLs = {
58
- "train": "https://zenodo.org/record/3707949/files/tapaco_v1.0.zip?download=1",
59
- }
60
 
61
  _VERSION = "1.0.0"
62
  _LANGUAGES = {
@@ -190,11 +189,11 @@ class Tapaco(datasets.GeneratorBasedBuilder):
190
 
191
  def _split_generators(self, dl_manager):
192
  """Returns SplitGenerators."""
193
- data_dir = dl_manager.download_and_extract(_URLs)
194
  return [
195
  datasets.SplitGenerator(
196
  name=datasets.Split.TRAIN,
197
- gen_kwargs={"data_dir": data_dir["train"]},
198
  ),
199
  ]
200
 
 
54
  _LICENSE = "Creative Commons Attribution 2.0 Generic"
55
 
56
 
57
+ # Original data: "https://zenodo.org/record/3707949/files/tapaco_v1.0.zip?download=1"
58
+ _URL = "data/tapaco_v1.0.zip"
 
59
 
60
  _VERSION = "1.0.0"
61
  _LANGUAGES = {
 
189
 
190
  def _split_generators(self, dl_manager):
191
  """Returns SplitGenerators."""
192
+ data_dir = dl_manager.download_and_extract(_URL)
193
  return [
194
  datasets.SplitGenerator(
195
  name=datasets.Split.TRAIN,
196
+ gen_kwargs={"data_dir": data_dir},
197
  ),
198
  ]
199