nthngdy commited on
Commit
1f228ed
·
1 Parent(s): a07556b

Update openwebtext_split.py

Browse files
Files changed (1) hide show
  1. openwebtext_split.py +1 -1
openwebtext_split.py CHANGED
@@ -105,4 +105,4 @@ class Openwebtext(datasets.GeneratorBasedBuilder):
105
  def _generate_examples(self, files):
106
  """Yields examples."""
107
  for idx, f in enumerate(files):
108
- yield idx, {"text": re.sub("\n\n\n+", "\n\n", f.read().decode()).strip()}
 
105
  def _generate_examples(self, files):
106
  """Yields examples."""
107
  for idx, f in enumerate(files):
108
+ yield idx, {"text": re.sub("\n\n\n+", "\n\n", f.read()).strip()}