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

Update openwebtext_split.py

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