Datasets:
tau
/

Modalities:
Text
Libraries:
Datasets
parquet-converter commited on
Commit
2783acf
1 Parent(s): dc77d04

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,31 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bin.* filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.onnx filter=lfs diff=lfs merge=lfs -text
14
- *.ot filter=lfs diff=lfs merge=lfs -text
15
- *.parquet filter=lfs diff=lfs merge=lfs -text
16
- *.pb filter=lfs diff=lfs merge=lfs -text
17
- *.pt filter=lfs diff=lfs merge=lfs -text
18
- *.pth filter=lfs diff=lfs merge=lfs -text
19
- *.rar filter=lfs diff=lfs merge=lfs -text
20
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
- *.tar.* filter=lfs diff=lfs merge=lfs -text
22
- *.tflite filter=lfs diff=lfs merge=lfs -text
23
- *.tgz filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
28
- data/summ_screen_fd/train.json filter=lfs diff=lfs merge=lfs -text
29
- data/summ_screen_fd/validation.json filter=lfs diff=lfs merge=lfs -text
30
- data/summ_screen_fd/test.json filter=lfs diff=lfs merge=lfs -text
31
- data/summ_screen_fd.zip filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
arxiv/fs-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b14c66c6cc825a991f8fc07004ccf4da5e3032b39490c9c373c81c4f6ae7c92c
3
+ size 104051798
arxiv/fs-train-00000-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec49cdcea2b165762d0b4f9568c74255026e0a2128598d77c6588212dfa99ba1
3
+ size 251110850
arxiv/fs-train-00001-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9aedd778ff4fcbc135f298cfb1397ea6d2e38777715662c14b6d291b8188bc6b
3
+ size 249569404
arxiv/fs-train-00002-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0df9432056a94aab2237a9bbea031ab09dd2767cc8e54a0a9e57f29d8553c572
3
+ size 249531381
arxiv/fs-train-00003-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50c8a4114493d64e48e12fbb4dbcda17833913819211e3ce8c981f95eef68082
3
+ size 247686720
arxiv/fs-train-00004-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc1df01806208f10bbc44227004071ea3c5428959796634b444d1a704d7a36cc
3
+ size 246898411
arxiv/fs-train-00005-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd01ab5a8b1bccc139b01f5629c4da0a52eae0d0bfcc8fed0c60db456797ab96
3
+ size 249347257
arxiv/fs-train-00006-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55d28557b74938ebe420d4ec9c2059a6f6282ba9f54b03393b8cd4290b5c9c3e
3
+ size 250918277
arxiv/fs-train-00007-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65ad9c38def75d52ee8f1887479fc79399df31d63d49f5216faaefdc59202b00
3
+ size 252085290
arxiv/fs-train-00008-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9bb8835beb6f135139fea094b64d5ab5a78f6c92ec17868260ea238fcb9d957
3
+ size 249206925
arxiv/fs-train-00009-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70ac36b641b7644899b79c4dbf231b3c8df49ba8b18fd0acb9f8e18226f12fab
3
+ size 251233054
arxiv/fs-train-00010-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20681b2d815da426c68aa46d9ae0689f79c92a1cf64c68bf82ab8a69ec042209
3
+ size 252800057
arxiv/fs-train-00011-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84dd4a2971bb4e3a31c4d0e083087f02781ec3489c3cfcdba59c103745a28aa2
3
+ size 252068162
arxiv/fs-train-00012-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b5b399db9c68ceebd5d33b65c8b18e7877e146fc88f28e069a014b93bc59e49
3
+ size 251987801
arxiv/fs-train-00013-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5a036cf1ce93d3788f83b93865bd7be414ea27b27b5146258ad0082dde95930
3
+ size 138660401
arxiv/fs-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cd825f4383b05b8efe2371d4fd6ba1afcd9d795b5938668d8348e2163600322
3
+ size 103709368
debug.py DELETED
@@ -1,7 +0,0 @@
1
- import datasets
2
-
3
- if __name__ == '__main__':
4
- dataset = datasets.load_dataset("fs.py", 'arxiv', streaming=True, split="validation")
5
- it = iter(dataset)
6
- a = next(it)
7
- x = 5
 
 
 
 
 
 
 
 
fs.py DELETED
@@ -1,160 +0,0 @@
1
- # coding=utf-8
2
- # Lint as: python3
3
- """The SCROLLS benchmark."""
4
-
5
- import json
6
- import os
7
- from abc import abstractmethod
8
- from typing import Union, NoReturn
9
-
10
- import datasets
11
-
12
-
13
- class FewsionConfig(datasets.BuilderConfig):
14
- """BuilderConfig for SCROLLS."""
15
-
16
- def __init__(self, data_url, **kwargs):
17
- """BuilderConfig for SCROLLS.
18
- Args:
19
- features: `list[string]`, list of the features that will appear in the
20
- feature dict. Should not include "label".
21
- data_url: `string`, url to download the zip file from.
22
- citation: `string`, citation for the data set.
23
- url: `string`, url for information about the data set.
24
- label_classes: `list[string]`, the list of classes for the label if the
25
- label is present as a string. Non-string labels will be cast to either
26
- 'False' or 'True'.
27
- **kwargs: keyword arguments forwarded to super.
28
- """
29
- super(FewsionConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
30
- self.data_url = data_url
31
- self.features = [self.source_column_name, self.target_column_name, self.id_column_name]
32
- if self.question_column_name:
33
- self.features.append(self.question_column_name)
34
-
35
- @property
36
- @abstractmethod
37
- def source_column_name(self) -> str:
38
- pass
39
-
40
- @property
41
- @abstractmethod
42
- def target_column_name(self) -> str:
43
- pass
44
-
45
- @property
46
- @abstractmethod
47
- def question_column_name(self) -> Union[str, NoReturn]:
48
- pass
49
-
50
- @property
51
- @abstractmethod
52
- def id_column_name(self) -> str:
53
- pass
54
-
55
-
56
- class ArxivConfig(FewsionConfig):
57
-
58
- @property
59
- def source_column_name(self) -> str:
60
- return "article"
61
-
62
- @property
63
- def target_column_name(self) -> str:
64
- return "abstract"
65
-
66
- @property
67
- def question_column_name(self) -> Union[str, NoReturn]:
68
- return
69
-
70
- @property
71
- def id_column_name(self) -> str:
72
- return "article_id"
73
-
74
-
75
- class RedditTIFUConfig(FewsionConfig):
76
-
77
- @property
78
- def source_column_name(self) -> str:
79
- return "document"
80
-
81
- @property
82
- def target_column_name(self) -> str:
83
- return "tldr"
84
-
85
- @property
86
- def question_column_name(self) -> Union[str, NoReturn]:
87
- return
88
-
89
- @property
90
- def id_column_name(self) -> str:
91
- return "id"
92
-
93
-
94
- class Fewsion(datasets.GeneratorBasedBuilder):
95
-
96
- DEFAULT_WRITER_BATCH_SIZE = 1000 # because Narrative QA is a rather large dataset
97
- BUILDER_CONFIGS = [
98
- ArxivConfig(
99
- name="arxiv",
100
- data_url="https://fewsion.s3.us-east-2.amazonaws.com/arxiv.zip",
101
- ),
102
- RedditTIFUConfig(
103
- name="reddit_tifu",
104
- data_url="https://fewsion.s3.us-east-2.amazonaws.com/reddit_tifu.zip",
105
- )
106
- ]
107
-
108
- def _info(self):
109
- features = {feature: datasets.Value("string") for feature in self.config.features}
110
-
111
- return datasets.DatasetInfo(
112
- description="",
113
- features=datasets.Features(features),
114
- homepage="",
115
- citation="",
116
- )
117
-
118
- def _split_generators(self, dl_manager):
119
- dl_dir = dl_manager.download_and_extract(self.config.data_url)
120
- task_name = _get_task_name_from_data_url(self.config.data_url)
121
- dl_dir = os.path.join(dl_dir, task_name)
122
-
123
- data_files = {} if self.config.data_files is not None else None
124
- if data_files is not None:
125
- for split, paths in self.config.data_files.items():
126
- data_files[split] = paths[0]
127
-
128
- return [
129
- datasets.SplitGenerator(
130
- name=datasets.Split.TRAIN,
131
- gen_kwargs={
132
- "data_file": os.path.join(dl_dir, "train.jsonl"),
133
- "split": datasets.Split.TRAIN,
134
- },
135
- ),
136
- datasets.SplitGenerator(
137
- name=datasets.Split.VALIDATION,
138
- gen_kwargs={
139
- "data_file": os.path.join(dl_dir, "val.jsonl"),
140
- "split": datasets.Split.VALIDATION,
141
- },
142
- ),
143
- datasets.SplitGenerator(
144
- name=datasets.Split.TEST,
145
- gen_kwargs={
146
- "data_file": os.path.join(dl_dir, "test.jsonl") if data_files is None else data_files["test"],
147
- "split": datasets.Split.TEST,
148
- },
149
- ),
150
- ]
151
-
152
- def _generate_examples(self, data_file, split):
153
- with open(data_file, encoding="utf-8") as f:
154
- for line in f:
155
- row = json.loads(line)
156
- yield row[self.config.id_column_name], row
157
-
158
-
159
- def _get_task_name_from_data_url(data_url):
160
- return data_url.split("/")[-1].split(".")[0]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
reddit_tifu/fs-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f49882a37a51f9f21d5a00b285fe985ccbcfa15db650988b02c65305e1cac65d
3
+ size 2781897
reddit_tifu/fs-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f5691fdf1a0c309b9ba2a123521a30a8873976ae646dcb7d093450d42920adf
3
+ size 51114012
reddit_tifu/fs-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a66fab0e4140fae1500f72ab90ed801659852708bd2054130b276a0d43303a0
3
+ size 2804519