Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- openwebtext.py +1 -1
openwebtext.py
CHANGED
@@ -80,7 +80,7 @@ class Openwebtext(datasets.GeneratorBasedBuilder):
|
|
80 |
]
|
81 |
|
82 |
def _generate_examples(self, txt_files):
|
83 |
-
"""
|
84 |
for idx, filepath in enumerate(txt_files):
|
85 |
with open(filepath, encoding="utf-8") as f:
|
86 |
yield idx, {"text": re.sub("\n\n\n+", "\n\n", f.read()).strip()}
|
|
|
80 |
]
|
81 |
|
82 |
def _generate_examples(self, txt_files):
|
83 |
+
"""Yields examples."""
|
84 |
for idx, filepath in enumerate(txt_files):
|
85 |
with open(filepath, encoding="utf-8") as f:
|
86 |
yield idx, {"text": re.sub("\n\n\n+", "\n\n", f.read()).strip()}
|