Datasets:

Tasks:
Other
Modalities:
Text
ArXiv:
Libraries:
Datasets
License:
parquet-converter commited on
Commit
351005b
·
1 Parent(s): 4af00b2

Update parquet files

Browse files
Files changed (45) hide show
  1. ar/xstory_cloze-eval.parquet +3 -0
  2. ar/xstory_cloze-train.parquet +3 -0
  3. en/xstory_cloze-eval.parquet +3 -0
  4. en/xstory_cloze-train.parquet +3 -0
  5. es/xstory_cloze-eval.parquet +3 -0
  6. es/xstory_cloze-train.parquet +3 -0
  7. eu/xstory_cloze-eval.parquet +3 -0
  8. eu/xstory_cloze-train.parquet +3 -0
  9. hi/xstory_cloze-eval.parquet +3 -0
  10. hi/xstory_cloze-train.parquet +3 -0
  11. id/xstory_cloze-eval.parquet +3 -0
  12. id/xstory_cloze-train.parquet +3 -0
  13. my/xstory_cloze-eval.parquet +3 -0
  14. my/xstory_cloze-train.parquet +3 -0
  15. ru/xstory_cloze-eval.parquet +3 -0
  16. ru/xstory_cloze-train.parquet +3 -0
  17. spring2016.val.ar.tsv.split_20_80_eval.tsv +0 -0
  18. spring2016.val.ar.tsv.split_20_80_train.tsv +0 -0
  19. spring2016.val.en.tsv.split_20_80_eval.tsv +0 -0
  20. spring2016.val.en.tsv.split_20_80_train.tsv +0 -0
  21. spring2016.val.es.tsv.split_20_80_eval.tsv +0 -0
  22. spring2016.val.es.tsv.split_20_80_train.tsv +0 -0
  23. spring2016.val.eu.tsv.split_20_80_eval.tsv +0 -0
  24. spring2016.val.eu.tsv.split_20_80_train.tsv +0 -0
  25. spring2016.val.hi.tsv.split_20_80_eval.tsv +0 -0
  26. spring2016.val.hi.tsv.split_20_80_train.tsv +0 -0
  27. spring2016.val.id.tsv.split_20_80_eval.tsv +0 -0
  28. spring2016.val.id.tsv.split_20_80_train.tsv +0 -0
  29. spring2016.val.my.tsv.split_20_80_eval.tsv +0 -0
  30. spring2016.val.my.tsv.split_20_80_train.tsv +0 -0
  31. spring2016.val.ru.tsv.split_20_80_eval.tsv +0 -0
  32. spring2016.val.ru.tsv.split_20_80_train.tsv +0 -0
  33. spring2016.val.sw.tsv.split_20_80_eval.tsv +0 -0
  34. spring2016.val.sw.tsv.split_20_80_train.tsv +0 -0
  35. spring2016.val.te.tsv.split_20_80_eval.tsv +0 -0
  36. spring2016.val.te.tsv.split_20_80_train.tsv +0 -0
  37. spring2016.val.zh.tsv.split_20_80_eval.tsv +0 -0
  38. spring2016.val.zh.tsv.split_20_80_train.tsv +0 -0
  39. sw/xstory_cloze-eval.parquet +3 -0
  40. sw/xstory_cloze-train.parquet +3 -0
  41. te/xstory_cloze-eval.parquet +3 -0
  42. te/xstory_cloze-train.parquet +3 -0
  43. xstory_cloze.py +0 -130
  44. zh/xstory_cloze-eval.parquet +3 -0
  45. zh/xstory_cloze-train.parquet +3 -0
ar/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea3b7cffd68289892a2f2c264be9720b8b7be890372ad8fec16b4bbfaeb18053
3
+ size 1224205
ar/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f31946eff856d18370297a0871c9a86ce821998ea50cae04c2edb833f57c84c6
3
+ size 311156
en/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5875a72812a7b43204020afbb9c4d77733c1cf96a999a3d8c4d4d1a4d0b7d208
3
+ size 976155
en/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a456dc16394c24f767ea5401f1e0680c0a846671d2c1ff521a85e3eb4d43e1e
3
+ size 243320
es/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eba227954454c2910cfaa2e6aa0f81ffafb322832a532395582a8c1f5246f24c
3
+ size 1072947
es/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:128a98c4334d23feae407b8c5350e4e54ce38051d97380d646afdd85cbca1cfb
3
+ size 268356
eu/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef78c19a1f5138a529ad3ba6f5123129cf05a2ded14b0ad93033f481eb5913ff
3
+ size 1025639
eu/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19c124cbe2e71899e92925562fe279e32dd2045cc9e1df6a6f110eb12a8155da
3
+ size 262239
hi/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7676f0553ee9404a52c6ff6e3a7a2b1a9c0268e6dd9a6a57a190dd0c7069961a
3
+ size 1549451
hi/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7bbc8293a7895718caff830598b39a7d0edf41f763ef4fb349ea96903039fcc
3
+ size 382074
id/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcc2144647550440b9dbb255277c3075d0fa404d8da88b1290ad22ffd44b6f5f
3
+ size 1010513
id/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5857386367a9ead277d66e45c3fa7e6bb4aa99a1b95bc7d72103716563d1b36
3
+ size 254804
my/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f322beafc2be7f5e0e3875a66a53ca46c2701d2123b4bf147749756ad7eaa727
3
+ size 1777763
my/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:914c89c3330ef49830ae35a50c1f6debc74a391156eaad1951cfd6c65819b5bb
3
+ size 432698
ru/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:290dd9674042f238b80b72b4aa54f206cd6ac04c6a0233ed0c2b82d7a14fb30a
3
+ size 1438873
ru/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25bd56a7f7862e0c8b68990c31a951172d17b4d434d4f5520acafc063b6abc7f
3
+ size 355851
spring2016.val.ar.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.ar.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.en.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.en.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.es.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.es.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.eu.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.eu.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.hi.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.hi.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.id.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.id.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.my.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.my.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.ru.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.ru.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.sw.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.sw.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.te.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.te.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.zh.tsv.split_20_80_eval.tsv DELETED
The diff for this file is too large to render. See raw diff
 
spring2016.val.zh.tsv.split_20_80_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
sw/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc5e47fde6b03e73a6ec98cb7cf453b6d818074b67326b0dce3762e64cb8dc5a
3
+ size 991857
sw/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72084f8ed2ad9f4f17c91a6df0cfdde4ae6ed47f141277c7a0bdeea4be9aa757
3
+ size 250729
te/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2111366af035be000a4ae116f4fc21b94307a8db62fac340f5d23d4ec00b15ab
3
+ size 1552549
te/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd10fb27121cbc2272dc9131e25d49f1bebfd3c5fab4f2cead5e79e5f32064e7
3
+ size 387520
xstory_cloze.py DELETED
@@ -1,130 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- """XStoryCloze dataset."""
16
-
17
-
18
- import csv
19
- import os
20
-
21
- import datasets
22
-
23
-
24
- _DESCRIPTION = """
25
- XStoryCloze consists of the professionally translated version of the [English StoryCloze dataset](https://cs.rochester.edu/nlp/rocstories/) (Spring 2016 version) to 10 non-English languages. This dataset is released by Meta AI.
26
- """
27
-
28
- _CITATION = """\
29
- @article{DBLP:journals/corr/abs-2112-10668,
30
- author = {Xi Victoria Lin and
31
- Todor Mihaylov and
32
- Mikel Artetxe and
33
- Tianlu Wang and
34
- Shuohui Chen and
35
- Daniel Simig and
36
- Myle Ott and
37
- Naman Goyal and
38
- Shruti Bhosale and
39
- Jingfei Du and
40
- Ramakanth Pasunuru and
41
- Sam Shleifer and
42
- Punit Singh Koura and
43
- Vishrav Chaudhary and
44
- Brian O'Horo and
45
- Jeff Wang and
46
- Luke Zettlemoyer and
47
- Zornitsa Kozareva and
48
- Mona T. Diab and
49
- Veselin Stoyanov and
50
- Xian Li},
51
- title = {Few-shot Learning with Multilingual Language Models},
52
- journal = {CoRR},
53
- volume = {abs/2112.10668},
54
- year = {2021},
55
- url = {https://arxiv.org/abs/2112.10668},
56
- eprinttype = {arXiv},
57
- eprint = {2112.10668},
58
- timestamp = {Tue, 04 Jan 2022 15:59:27 +0100},
59
- biburl = {https://dblp.org/rec/journals/corr/abs-2112-10668.bib},
60
- bibsource = {dblp computer science bibliography, https://dblp.org}
61
- }
62
- """
63
-
64
- _LANG = ["en", "ru", "zh", "es", "ar", "hi", "id", "te", "sw", "eu", "my"]
65
- _URL_FORMAT = "spring2016.val.{lang}.tsv.split_20_80_{split}.tsv"
66
-
67
-
68
- class XStoryCloze(datasets.GeneratorBasedBuilder):
69
- """XStoryCloze."""
70
-
71
- BUILDER_CONFIGS = [
72
- datasets.BuilderConfig(name=lang,
73
- description="XStoryCloze Test Spring 2016 {lang} set")
74
- for lang in _LANG
75
- ]
76
-
77
- def _info(self):
78
- return datasets.DatasetInfo(
79
- description=_DESCRIPTION,
80
- features=datasets.Features(
81
- {
82
- "story_id": datasets.Value("string"),
83
- "input_sentence_1": datasets.Value("string"),
84
- "input_sentence_2": datasets.Value("string"),
85
- "input_sentence_3": datasets.Value("string"),
86
- "input_sentence_4": datasets.Value("string"),
87
- "sentence_quiz1": datasets.Value("string"),
88
- "sentence_quiz2": datasets.Value("string"),
89
- "answer_right_ending": datasets.Value("int32"),
90
- }
91
- ),
92
- homepage="https://cs.rochester.edu/nlp/rocstories/",
93
- citation=_CITATION,
94
- )
95
-
96
- def _split_generators(self, dl_manager):
97
- name = self.config.name
98
-
99
- filepaths = dl_manager.download_and_extract({
100
- "train": _URL_FORMAT.format(lang=name, split="train"),
101
- "eval": _URL_FORMAT.format(lang=name, split="eval"),
102
- })
103
-
104
- return [
105
- datasets.SplitGenerator(
106
- name=split,
107
- # These kwargs will be passed to _generate_examples
108
- gen_kwargs={"filepath": path},
109
- ) for split, path in filepaths.items()
110
- ]
111
-
112
- def _generate_examples(self, filepath):
113
- """Generate XStoryCloze examples."""
114
- with open(filepath, encoding="utf-8") as csv_file:
115
- csv_reader = csv.reader(
116
- csv_file, quotechar='"', delimiter="\t", quoting=csv.QUOTE_ALL, skipinitialspace=True
117
- )
118
- _ = next(csv_reader)
119
- for id_, row in enumerate(csv_reader):
120
- if row and len(row) == 8:
121
- yield id_, {
122
- "story_id": row[0],
123
- "input_sentence_1": row[1],
124
- "input_sentence_2": row[2],
125
- "input_sentence_3": row[3],
126
- "input_sentence_4": row[4],
127
- "sentence_quiz1": row[5],
128
- "sentence_quiz2": row[6],
129
- "answer_right_ending": int(row[7]),
130
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
zh/xstory_cloze-eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d988678fef60a983cb837fdd5e251642346bac1071a75786e31dc1aee14b3013
3
+ size 1031942
zh/xstory_cloze-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96e76ed55b2f01dc73f7b955ff5fe36d8c31d0e5616d3953549982a02506adb4
3
+ size 256536