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
CHANGED
|
@@ -17,6 +17,7 @@ task_categories:
|
|
| 17 |
- sequence-modeling
|
| 18 |
task_ids:
|
| 19 |
- language-modeling
|
|
|
|
| 20 |
---
|
| 21 |
|
| 22 |
# Dataset Card for SrWac
|
|
@@ -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 |
- sequence-modeling
|
| 18 |
task_ids:
|
| 19 |
- language-modeling
|
| 20 |
+
paperswithcode_id: null
|
| 21 |
---
|
| 22 |
|
| 23 |
# Dataset Card for SrWac
|
|
|
|
| 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)
|
srwac.py
CHANGED
|
@@ -83,9 +83,9 @@ class Srwac(datasets.GeneratorBasedBuilder):
|
|
| 83 |
]
|
| 84 |
|
| 85 |
def _generate_examples(self, filepath):
|
| 86 |
-
for fp in filepath:
|
| 87 |
with open(fp, encoding="utf8") as f:
|
| 88 |
for id_, row in enumerate(f):
|
| 89 |
-
yield id_, {
|
| 90 |
"sentence": row.strip(),
|
| 91 |
}
|
|
|
|
| 83 |
]
|
| 84 |
|
| 85 |
def _generate_examples(self, filepath):
|
| 86 |
+
for file_idx, fp in enumerate(filepath):
|
| 87 |
with open(fp, encoding="utf8") as f:
|
| 88 |
for id_, row in enumerate(f):
|
| 89 |
+
yield f"{file_idx}_{id_}", {
|
| 90 |
"sentence": row.strip(),
|
| 91 |
}
|