nthngdy commited on
Commit
f9944eb
·
1 Parent(s): 0fab87d

Update openwebtext_split.py

Browse files
Files changed (1) hide show
  1. openwebtext_split.py +2 -1
openwebtext_split.py CHANGED
@@ -98,4 +98,5 @@ class Openwebtext(datasets.GeneratorBasedBuilder):
98
  def _generate_examples(self, files):
99
  """Yields examples."""
100
  for idx, (filepath, f) in enumerate(files):
101
- yield idx, {"text": re.sub("\n\n\n+", "\n\n", f.read()).strip()}
 
 
98
  def _generate_examples(self, files):
99
  """Yields examples."""
100
  for idx, (filepath, f) in enumerate(files):
101
+ print(filepath)
102
+ yield idx, {"text": re.sub("\n\n\n+", "\n\n", f.read().decode()).strip()}