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

Update openwebtext_split.py

Browse files
Files changed (1) hide show
  1. openwebtext_split.py +0 -2
openwebtext_split.py CHANGED
@@ -98,6 +98,4 @@ class Openwebtext(datasets.GeneratorBasedBuilder):
98
  def _generate_examples(self, files):
99
  """Yields examples."""
100
  for idx, (filepath, f) in enumerate(files):
101
- if not filepath.endswith('txt'):
102
- continue
103
  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
  yield idx, {"text": re.sub("\n\n\n+", "\n\n", f.read()).strip()}