system HF staff commited on
Commit
b3c2e8a
1 Parent(s): e5cb809

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. hyperpartisan_news_detection.py +1 -1
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  ---
3
 
4
  # Dataset Card for "hyperpartisan_news_detection"
@@ -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)
@@ -46,7 +47,7 @@ There are 2 parts:
46
  - byarticle: Labeled through crowdsourcing on an article basis. The data contains only articles for which a consensus among the crowdsourcing workers existed.
47
  - bypublisher: Labeled by the overall bias of the publisher as provided by BuzzFeed journalists or MediaBiasFactCheck.com.
48
 
49
- ### Supported Tasks
50
 
51
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
52
 
@@ -118,7 +119,7 @@ The data fields are the same among all splits.
118
  - `published_at`: a `string` feature.
119
  - `bias`: a classification label, with possible values including `right` (0), `right-center` (1), `least` (2), `left-center` (3), `left` (4).
120
 
121
- ### Data Splits Sample Size
122
 
123
  #### byarticle
124
 
@@ -140,10 +141,22 @@ The data fields are the same among all splits.
140
 
141
  ### Source Data
142
 
 
 
 
 
 
 
143
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
144
 
145
  ### Annotations
146
 
 
 
 
 
 
 
147
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
148
 
149
  ### Personal and Sensitive Information
 
1
  ---
2
+ paperswithcode_id: null
3
  ---
4
 
5
  # Dataset Card for "hyperpartisan_news_detection"
 
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)
 
47
  - byarticle: Labeled through crowdsourcing on an article basis. The data contains only articles for which a consensus among the crowdsourcing workers existed.
48
  - bypublisher: Labeled by the overall bias of the publisher as provided by BuzzFeed journalists or MediaBiasFactCheck.com.
49
 
50
+ ### Supported Tasks and Leaderboards
51
 
52
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
53
 
 
119
  - `published_at`: a `string` feature.
120
  - `bias`: a classification label, with possible values including `right` (0), `right-center` (1), `least` (2), `left-center` (3), `left` (4).
121
 
122
+ ### Data Splits
123
 
124
  #### byarticle
125
 
 
141
 
142
  ### Source Data
143
 
144
+ #### Initial Data Collection and Normalization
145
+
146
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
147
+
148
+ #### Who are the source language producers?
149
+
150
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
151
 
152
  ### Annotations
153
 
154
+ #### Annotation process
155
+
156
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
157
+
158
+ #### Who are the annotators?
159
+
160
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
161
 
162
  ### Personal and Sensitive Information
hyperpartisan_news_detection.py CHANGED
@@ -145,7 +145,7 @@ class HyperpartisanNewsDetection(datasets.GeneratorBasedBuilder):
145
  example["hyperpartisan"] = example["hyperpartisan"] == "true"
146
 
147
  example["text"] = ""
148
- for child in article.getchildren():
149
  example["text"] += ET.tostring(child).decode() + "\n"
150
  example["text"] = example["text"].strip()
151
  del example["id"]
 
145
  example["hyperpartisan"] = example["hyperpartisan"] == "true"
146
 
147
  example["text"] = ""
148
+ for child in article:
149
  example["text"] += ET.tostring(child).decode() + "\n"
150
  example["text"] = example["text"].strip()
151
  del example["id"]