Update files from the datasets library (from 1.7.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.7.0
- README.md +4 -3
- great_code.py +2 -2
README.md
CHANGED
@@ -17,6 +17,7 @@ task_categories:
|
|
17 |
- conditional-text-generation
|
18 |
task_ids:
|
19 |
- table-to-text
|
|
|
20 |
---
|
21 |
|
22 |
# Dataset Card Creation Guide
|
@@ -24,12 +25,12 @@ task_ids:
|
|
24 |
## Table of Contents
|
25 |
- [Dataset Description](#dataset-description)
|
26 |
- [Dataset Summary](#dataset-summary)
|
27 |
-
- [Supported Tasks](#supported-tasks-and-leaderboards)
|
28 |
- [Languages](#languages)
|
29 |
- [Dataset Structure](#dataset-structure)
|
30 |
- [Data Instances](#data-instances)
|
31 |
-
- [Data Fields](#data-
|
32 |
-
- [Data Splits](#data-
|
33 |
- [Dataset Creation](#dataset-creation)
|
34 |
- [Curation Rationale](#curation-rationale)
|
35 |
- [Source Data](#source-data)
|
|
|
17 |
- conditional-text-generation
|
18 |
task_ids:
|
19 |
- table-to-text
|
20 |
+
paperswithcode_id: null
|
21 |
---
|
22 |
|
23 |
# Dataset Card Creation Guide
|
|
|
25 |
## Table of Contents
|
26 |
- [Dataset Description](#dataset-description)
|
27 |
- [Dataset Summary](#dataset-summary)
|
28 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
29 |
- [Languages](#languages)
|
30 |
- [Dataset Structure](#dataset-structure)
|
31 |
- [Data Instances](#data-instances)
|
32 |
+
- [Data Fields](#data-fields)
|
33 |
+
- [Data Splits](#data-splits)
|
34 |
- [Dataset Creation](#dataset-creation)
|
35 |
- [Curation Rationale](#curation-rationale)
|
36 |
- [Source Data](#source-data)
|
great_code.py
CHANGED
@@ -131,7 +131,7 @@ class GreatCode(datasets.GeneratorBasedBuilder):
|
|
131 |
]
|
132 |
|
133 |
def _generate_examples(self, datapath, datatype):
|
134 |
-
for dp in datapath:
|
135 |
with open(dp, "r", encoding="utf-8") as json_file:
|
136 |
json_list = list(json_file)
|
137 |
|
@@ -159,4 +159,4 @@ class GreatCode(datasets.GeneratorBasedBuilder):
|
|
159 |
],
|
160 |
"provenances": result["provenances"],
|
161 |
}
|
162 |
-
yield example_counter, response
|
|
|
131 |
]
|
132 |
|
133 |
def _generate_examples(self, datapath, datatype):
|
134 |
+
for file_idx, dp in enumerate(datapath):
|
135 |
with open(dp, "r", encoding="utf-8") as json_file:
|
136 |
json_list = list(json_file)
|
137 |
|
|
|
159 |
],
|
160 |
"provenances": result["provenances"],
|
161 |
}
|
162 |
+
yield f"{file_idx}_{example_counter}", response
|