system HF staff commited on
Commit
097ef55
1 Parent(s): e00b5df

Update files from the datasets library (from 1.16.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.16.0

Files changed (1) hide show
  1. guardian_authorship.py +32 -58
guardian_authorship.py CHANGED
@@ -90,108 +90,90 @@ class GuardianAuthorship(datasets.GeneratorBasedBuilder):
90
  BUILDER_CONFIGS = [
91
  # cross-topic
92
  GuardianAuthorshipConfig(
93
- name="cross_topic_{}".format(1),
94
- version=datasets.Version(
95
- "{}.0.0".format(1), description="The Original DS with the cross-topic scenario no.{}".format(1)
96
- ),
97
  train_folder="Politics",
98
  valid_folder="Society",
99
  test_folder="UK,World",
100
  ),
101
  GuardianAuthorshipConfig(
102
- name="cross_topic_{}".format(2),
103
- version=datasets.Version(
104
- "{}.0.0".format(2), description="The Original DS with the cross-topic scenario no.{}".format(2)
105
- ),
106
  train_folder="Politics",
107
  valid_folder="UK",
108
  test_folder="Society,World",
109
  ),
110
  GuardianAuthorshipConfig(
111
- name="cross_topic_{}".format(3),
112
- version=datasets.Version(
113
- "{}.0.0".format(3), description="The Original DS with the cross-topic scenario no.{}".format(3)
114
- ),
115
  train_folder="Politics",
116
  valid_folder="World",
117
  test_folder="Society,UK",
118
  ),
119
  GuardianAuthorshipConfig(
120
- name="cross_topic_{}".format(4),
121
- version=datasets.Version(
122
- "{}.0.0".format(4), description="The Original DS with the cross-topic scenario no.{}".format(4)
123
- ),
124
  train_folder="Society",
125
  valid_folder="Politics",
126
  test_folder="UK,World",
127
  ),
128
  GuardianAuthorshipConfig(
129
- name="cross_topic_{}".format(5),
130
- version=datasets.Version(
131
- "{}.0.0".format(5), description="The Original DS with the cross-topic scenario no.{}".format(5)
132
- ),
133
  train_folder="Society",
134
  valid_folder="UK",
135
  test_folder="Politics,World",
136
  ),
137
  GuardianAuthorshipConfig(
138
- name="cross_topic_{}".format(6),
139
- version=datasets.Version(
140
- "{}.0.0".format(6), description="The Original DS with the cross-topic scenario no.{}".format(6)
141
- ),
142
  train_folder="Society",
143
  valid_folder="World",
144
  test_folder="Politics,UK",
145
  ),
146
  GuardianAuthorshipConfig(
147
- name="cross_topic_{}".format(7),
148
- version=datasets.Version(
149
- "{}.0.0".format(7), description="The Original DS with the cross-topic scenario no.{}".format(7)
150
- ),
151
  train_folder="UK",
152
  valid_folder="Politics",
153
  test_folder="Society,World",
154
  ),
155
  GuardianAuthorshipConfig(
156
- name="cross_topic_{}".format(8),
157
- version=datasets.Version(
158
- "{}.0.0".format(8), description="The Original DS with the cross-topic scenario no.{}".format(8)
159
- ),
160
  train_folder="UK",
161
  valid_folder="Society",
162
  test_folder="Politics,World",
163
  ),
164
  GuardianAuthorshipConfig(
165
- name="cross_topic_{}".format(9),
166
- version=datasets.Version(
167
- "{}.0.0".format(9), description="The Original DS with the cross-topic scenario no.{}".format(9)
168
- ),
169
  train_folder="UK",
170
  valid_folder="World",
171
  test_folder="Politics,Society",
172
  ),
173
  GuardianAuthorshipConfig(
174
- name="cross_topic_{}".format(10),
175
  version=datasets.Version(
176
- "{}.0.0".format(10), description="The Original DS with the cross-topic scenario no.{}".format(10)
177
  ),
178
  train_folder="World",
179
  valid_folder="Politics",
180
  test_folder="Society,UK",
181
  ),
182
  GuardianAuthorshipConfig(
183
- name="cross_topic_{}".format(11),
184
  version=datasets.Version(
185
- "{}.0.0".format(11), description="The Original DS with the cross-topic scenario no.{}".format(11)
186
  ),
187
  train_folder="World",
188
  valid_folder="Society",
189
  test_folder="Politics,UK",
190
  ),
191
  GuardianAuthorshipConfig(
192
- name="cross_topic_{}".format(12),
193
  version=datasets.Version(
194
- "{}.0.0".format(12), description="The Original DS with the cross-topic scenario no.{}".format(12)
195
  ),
196
  train_folder="World",
197
  valid_folder="UK",
@@ -199,37 +181,29 @@ class GuardianAuthorship(datasets.GeneratorBasedBuilder):
199
  ),
200
  # # cross-genre
201
  GuardianAuthorshipConfig(
202
- name="cross_genre_{}".format(1),
203
- version=datasets.Version(
204
- "{}.0.0".format(13), description="The Original DS with the cross-genre scenario no.{}".format(1)
205
- ),
206
  train_folder="Books",
207
  valid_folder="Politics",
208
  test_folder="Society,UK,World",
209
  ),
210
  GuardianAuthorshipConfig(
211
- name="cross_genre_{}".format(2),
212
- version=datasets.Version(
213
- "{}.0.0".format(14), description="The Original DS with the cross-genre scenario no.{}".format(2)
214
- ),
215
  train_folder="Books",
216
  valid_folder="Society",
217
  test_folder="Politics,UK,World",
218
  ),
219
  GuardianAuthorshipConfig(
220
- name="cross_genre_{}".format(3),
221
- version=datasets.Version(
222
- "{}.0.0".format(15), description="The Original DS with the cross-genre scenario no.{}".format(3)
223
- ),
224
  train_folder="Books",
225
  valid_folder="UK",
226
  test_folder="Politics,Society,World",
227
  ),
228
  GuardianAuthorshipConfig(
229
- name="cross_genre_{}".format(4),
230
- version=datasets.Version(
231
- "{}.0.0".format(16), description="The Original DS with the cross-genre scenario no.{}".format(4)
232
- ),
233
  train_folder="Books",
234
  valid_folder="World",
235
  test_folder="Politics,Society,UK",
 
90
  BUILDER_CONFIGS = [
91
  # cross-topic
92
  GuardianAuthorshipConfig(
93
+ name=f"cross_topic_{1}",
94
+ version=datasets.Version(f"{1}.0.0", description=f"The Original DS with the cross-topic scenario no.{1}"),
 
 
95
  train_folder="Politics",
96
  valid_folder="Society",
97
  test_folder="UK,World",
98
  ),
99
  GuardianAuthorshipConfig(
100
+ name=f"cross_topic_{2}",
101
+ version=datasets.Version(f"{2}.0.0", description=f"The Original DS with the cross-topic scenario no.{2}"),
 
 
102
  train_folder="Politics",
103
  valid_folder="UK",
104
  test_folder="Society,World",
105
  ),
106
  GuardianAuthorshipConfig(
107
+ name=f"cross_topic_{3}",
108
+ version=datasets.Version(f"{3}.0.0", description=f"The Original DS with the cross-topic scenario no.{3}"),
 
 
109
  train_folder="Politics",
110
  valid_folder="World",
111
  test_folder="Society,UK",
112
  ),
113
  GuardianAuthorshipConfig(
114
+ name=f"cross_topic_{4}",
115
+ version=datasets.Version(f"{4}.0.0", description=f"The Original DS with the cross-topic scenario no.{4}"),
 
 
116
  train_folder="Society",
117
  valid_folder="Politics",
118
  test_folder="UK,World",
119
  ),
120
  GuardianAuthorshipConfig(
121
+ name=f"cross_topic_{5}",
122
+ version=datasets.Version(f"{5}.0.0", description=f"The Original DS with the cross-topic scenario no.{5}"),
 
 
123
  train_folder="Society",
124
  valid_folder="UK",
125
  test_folder="Politics,World",
126
  ),
127
  GuardianAuthorshipConfig(
128
+ name=f"cross_topic_{6}",
129
+ version=datasets.Version(f"{6}.0.0", description=f"The Original DS with the cross-topic scenario no.{6}"),
 
 
130
  train_folder="Society",
131
  valid_folder="World",
132
  test_folder="Politics,UK",
133
  ),
134
  GuardianAuthorshipConfig(
135
+ name=f"cross_topic_{7}",
136
+ version=datasets.Version(f"{7}.0.0", description=f"The Original DS with the cross-topic scenario no.{7}"),
 
 
137
  train_folder="UK",
138
  valid_folder="Politics",
139
  test_folder="Society,World",
140
  ),
141
  GuardianAuthorshipConfig(
142
+ name=f"cross_topic_{8}",
143
+ version=datasets.Version(f"{8}.0.0", description=f"The Original DS with the cross-topic scenario no.{8}"),
 
 
144
  train_folder="UK",
145
  valid_folder="Society",
146
  test_folder="Politics,World",
147
  ),
148
  GuardianAuthorshipConfig(
149
+ name=f"cross_topic_{9}",
150
+ version=datasets.Version(f"{9}.0.0", description=f"The Original DS with the cross-topic scenario no.{9}"),
 
 
151
  train_folder="UK",
152
  valid_folder="World",
153
  test_folder="Politics,Society",
154
  ),
155
  GuardianAuthorshipConfig(
156
+ name=f"cross_topic_{10}",
157
  version=datasets.Version(
158
+ f"{10}.0.0", description=f"The Original DS with the cross-topic scenario no.{10}"
159
  ),
160
  train_folder="World",
161
  valid_folder="Politics",
162
  test_folder="Society,UK",
163
  ),
164
  GuardianAuthorshipConfig(
165
+ name=f"cross_topic_{11}",
166
  version=datasets.Version(
167
+ f"{11}.0.0", description=f"The Original DS with the cross-topic scenario no.{11}"
168
  ),
169
  train_folder="World",
170
  valid_folder="Society",
171
  test_folder="Politics,UK",
172
  ),
173
  GuardianAuthorshipConfig(
174
+ name=f"cross_topic_{12}",
175
  version=datasets.Version(
176
+ f"{12}.0.0", description=f"The Original DS with the cross-topic scenario no.{12}"
177
  ),
178
  train_folder="World",
179
  valid_folder="UK",
 
181
  ),
182
  # # cross-genre
183
  GuardianAuthorshipConfig(
184
+ name=f"cross_genre_{1}",
185
+ version=datasets.Version(f"{1}.0.0", description=f"The Original DS with the cross-genre scenario no.{1}"),
 
 
186
  train_folder="Books",
187
  valid_folder="Politics",
188
  test_folder="Society,UK,World",
189
  ),
190
  GuardianAuthorshipConfig(
191
+ name=f"cross_genre_{2}",
192
+ version=datasets.Version(f"{2}.0.0", description=f"The Original DS with the cross-genre scenario no.{2}"),
 
 
193
  train_folder="Books",
194
  valid_folder="Society",
195
  test_folder="Politics,UK,World",
196
  ),
197
  GuardianAuthorshipConfig(
198
+ name=f"cross_genre_{3}",
199
+ version=datasets.Version(f"{3}.0.0", description=f"The Original DS with the cross-genre scenario no.{3}"),
 
 
200
  train_folder="Books",
201
  valid_folder="UK",
202
  test_folder="Politics,Society,World",
203
  ),
204
  GuardianAuthorshipConfig(
205
+ name=f"cross_genre_{4}",
206
+ version=datasets.Version(f"{4}.0.0", description=f"The Original DS with the cross-genre scenario no.{4}"),
 
 
207
  train_folder="Books",
208
  valid_folder="World",
209
  test_folder="Politics,Society,UK",