Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
1M<n<10M
Language Creators:
expert-generated
Annotations Creators:
no-annotation
Source Datasets:
original
License:
system HF staff commited on
Commit
5ef2261
1 Parent(s): 64ecab0

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. qa_zre.py +2 -2
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  ---
3
 
4
  # Dataset Card for "qa_zre"
@@ -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)
@@ -41,7 +42,7 @@
41
 
42
  A dataset reducing relation extraction to simple reading comprehension questions
43
 
44
- ### Supported Tasks
45
 
46
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
47
 
@@ -83,7 +84,7 @@ The data fields are the same among all splits.
83
  - `context`: a `string` feature.
84
  - `answers`: a `list` of `string` features.
85
 
86
- ### Data Splits Sample Size
87
 
88
  | name | train |validation| test |
89
  |-------|------:|---------:|-----:|
@@ -97,10 +98,22 @@ The data fields are the same among all splits.
97
 
98
  ### Source Data
99
 
 
 
 
 
 
 
100
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
101
 
102
  ### Annotations
103
 
 
 
 
 
 
 
104
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
105
 
106
  ### Personal and Sensitive Information
1
  ---
2
+ paperswithcode_id: null
3
  ---
4
 
5
  # Dataset Card for "qa_zre"
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)
42
 
43
  A dataset reducing relation extraction to simple reading comprehension questions
44
 
45
+ ### Supported Tasks and Leaderboards
46
 
47
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
48
 
84
  - `context`: a `string` feature.
85
  - `answers`: a `list` of `string` features.
86
 
87
+ ### Data Splits
88
 
89
  | name | train |validation| test |
90
  |-------|------:|---------:|-----:|
98
 
99
  ### Source Data
100
 
101
+ #### Initial Data Collection and Normalization
102
+
103
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
104
+
105
+ #### Who are the source language producers?
106
+
107
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
108
 
109
  ### Annotations
110
 
111
+ #### Annotation process
112
+
113
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
114
+
115
+ #### Who are the annotators?
116
+
117
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
118
 
119
  ### Personal and Sensitive Information
qa_zre.py CHANGED
@@ -86,11 +86,11 @@ class QaZre(datasets.GeneratorBasedBuilder):
86
  def _generate_examples(self, filepaths):
87
  """Yields examples."""
88
 
89
- for filepath in filepaths:
90
  with open(filepath, encoding="utf-8") as f:
91
  data = csv.reader(f, delimiter="\t")
92
  for idx, row in enumerate(data):
93
- yield idx, {
94
  "relation": row[0],
95
  "question": row[1],
96
  "subject": row[2],
86
  def _generate_examples(self, filepaths):
87
  """Yields examples."""
88
 
89
+ for file_idx, filepath in enumerate(filepaths):
90
  with open(filepath, encoding="utf-8") as f:
91
  data = csv.reader(f, delimiter="\t")
92
  for idx, row in enumerate(data):
93
+ yield f"{file_idx}_{idx}", {
94
  "relation": row[0],
95
  "question": row[1],
96
  "subject": row[2],