Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
system HF staff commited on
Commit
7e6f1a4
·
1 Parent(s): edc2643

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. race.py +2 -2
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  ---
3
 
4
  # Dataset Card for "race"
@@ -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)
@@ -43,7 +44,7 @@ Race is a large-scale reading comprehension dataset with more than 28,000 passag
43
  dataset is collected from English examinations in China, which are designed for middle school and high school students.
44
  The dataset can be served as the training and test sets for machine comprehension.
45
 
46
- ### Supported Tasks
47
 
48
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
49
 
@@ -139,7 +140,7 @@ The data fields are the same among all splits.
139
  - `question`: a `string` feature.
140
  - `options`: a `list` of `string` features.
141
 
142
- ### Data Splits Sample Size
143
 
144
  | name |train|validation|test|
145
  |------|----:|---------:|---:|
@@ -155,10 +156,22 @@ The data fields are the same among all splits.
155
 
156
  ### Source Data
157
 
 
 
 
 
 
 
158
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
159
 
160
  ### Annotations
161
 
 
 
 
 
 
 
162
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
163
 
164
  ### Personal and Sensitive Information
 
1
  ---
2
+ paperswithcode_id: race
3
  ---
4
 
5
  # Dataset Card for "race"
 
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)
 
44
  dataset is collected from English examinations in China, which are designed for middle school and high school students.
45
  The dataset can be served as the training and test sets for machine comprehension.
46
 
47
+ ### Supported Tasks and Leaderboards
48
 
49
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
50
 
 
140
  - `question`: a `string` feature.
141
  - `options`: a `list` of `string` features.
142
 
143
+ ### Data Splits
144
 
145
  | name |train|validation|test|
146
  |------|----:|---------:|---:|
 
156
 
157
  ### Source Data
158
 
159
+ #### Initial Data Collection and Normalization
160
+
161
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
162
+
163
+ #### Who are the source language producers?
164
+
165
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
166
 
167
  ### Annotations
168
 
169
+ #### Annotation process
170
+
171
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
172
+
173
+ #### Who are the annotators?
174
+
175
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
176
 
177
  ### Personal and Sensitive Information
race.py CHANGED
@@ -96,7 +96,7 @@ class Race(datasets.GeneratorBasedBuilder):
96
  """Yields examples."""
97
  current_path = Path(train_test_or_eval)
98
  files_in_dir = [str(f.absolute()) for f in sorted(current_path.glob("**/*.txt"))]
99
- for file in sorted(files_in_dir):
100
  with open(file, encoding="utf-8") as f:
101
  data = json.load(f)
102
  questions = data["questions"]
@@ -106,7 +106,7 @@ class Race(datasets.GeneratorBasedBuilder):
106
  question = questions[i]
107
  answer = answers[i]
108
  option = options[i]
109
- yield i, {
110
  "example_id": data["id"],
111
  "article": data["article"],
112
  "question": question,
 
96
  """Yields examples."""
97
  current_path = Path(train_test_or_eval)
98
  files_in_dir = [str(f.absolute()) for f in sorted(current_path.glob("**/*.txt"))]
99
+ for file_idx, file in enumerate(sorted(files_in_dir)):
100
  with open(file, encoding="utf-8") as f:
101
  data = json.load(f)
102
  questions = data["questions"]
 
106
  question = questions[i]
107
  answer = answers[i]
108
  option = options[i]
109
+ yield f"{file_idx}_{i}", {
110
  "example_id": data["id"],
111
  "article": data["article"],
112
  "question": question,