system HF staff commited on
Commit
96f5248
1 Parent(s): c2e6273

Update files from the datasets library (from 1.7.0)

Browse files

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

Files changed (2) hide show
  1. README.md +17 -4
  2. guardian_authorship.py +1 -1
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  ---
3
 
4
  # Dataset Card for "guardian_authorship"
@@ -6,12 +7,12 @@
6
  ## Table of Contents
7
  - [Dataset Description](#dataset-description)
8
  - [Dataset Summary](#dataset-summary)
9
- - [Supported Tasks](#supported-tasks)
10
  - [Languages](#languages)
11
  - [Dataset Structure](#dataset-structure)
12
  - [Data Instances](#data-instances)
13
  - [Data Fields](#data-fields)
14
- - [Data Splits Sample Size](#data-splits-sample-size)
15
  - [Dataset Creation](#dataset-creation)
16
  - [Curation Rationale](#curation-rationale)
17
  - [Source Data](#source-data)
@@ -54,7 +55,7 @@ IMPORTANT: train+validation+test[:60%] will generate the wrong splits becasue th
54
 
55
  * See https://huggingface.co/docs/datasets/splits.html for detailed/more examples
56
 
57
- ### Supported Tasks
58
 
59
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
60
 
@@ -172,7 +173,7 @@ The data fields are the same among all splits.
172
  - `topic`: a classification label, with possible values including `Politics` (0), `Society` (1), `UK` (2), `World` (3), `Books` (4).
173
  - `article`: a `string` feature.
174
 
175
- ### Data Splits Sample Size
176
 
177
  | name |train|validation|test|
178
  |-------------|----:|---------:|---:|
@@ -190,10 +191,22 @@ The data fields are the same among all splits.
190
 
191
  ### Source Data
192
 
 
 
 
 
 
 
193
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
194
 
195
  ### Annotations
196
 
 
 
 
 
 
 
197
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
198
 
199
  ### Personal and Sensitive Information
 
1
  ---
2
+ paperswithcode_id: null
3
  ---
4
 
5
  # Dataset Card for "guardian_authorship"
 
7
  ## Table of Contents
8
  - [Dataset Description](#dataset-description)
9
  - [Dataset Summary](#dataset-summary)
10
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
11
  - [Languages](#languages)
12
  - [Dataset Structure](#dataset-structure)
13
  - [Data Instances](#data-instances)
14
  - [Data Fields](#data-fields)
15
+ - [Data Splits](#data-splits)
16
  - [Dataset Creation](#dataset-creation)
17
  - [Curation Rationale](#curation-rationale)
18
  - [Source Data](#source-data)
 
55
 
56
  * See https://huggingface.co/docs/datasets/splits.html for detailed/more examples
57
 
58
+ ### Supported Tasks and Leaderboards
59
 
60
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
61
 
 
173
  - `topic`: a classification label, with possible values including `Politics` (0), `Society` (1), `UK` (2), `World` (3), `Books` (4).
174
  - `article`: a `string` feature.
175
 
176
+ ### Data Splits
177
 
178
  | name |train|validation|test|
179
  |-------------|----:|---------:|---:|
 
191
 
192
  ### Source Data
193
 
194
+ #### Initial Data Collection and Normalization
195
+
196
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
197
+
198
+ #### Who are the source language producers?
199
+
200
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
201
 
202
  ### Annotations
203
 
204
+ #### Annotation process
205
+
206
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
207
+
208
+ #### Who are the annotators?
209
+
210
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
211
 
212
  ### Personal and Sensitive Information
guardian_authorship.py CHANGED
@@ -344,7 +344,7 @@ class GuardianAuthorship(datasets.GeneratorBasedBuilder):
344
 
345
  # The whole article is stored as one line. We access the 1st element of the list
346
  # to store it as string, not as a list
347
- yield id_, {
348
  "article": art[0],
349
  "author": author,
350
  "topic": topic,
 
344
 
345
  # The whole article is stored as one line. We access the 1st element of the list
346
  # to store it as string, not as a list
347
+ yield f"{topic}_{author}_{id_}", {
348
  "article": art[0],
349
  "author": author,
350
  "topic": topic,