nthngdy commited on
Commit
69eaa8d
·
1 Parent(s): fc69395

Update openwebtext_split.py

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