nthngdy commited on
Commit
850b10b
·
1 Parent(s): 68ef1dd

Update openwebtext_split.py

Browse files
Files changed (1) hide show
  1. openwebtext_split.py +2 -4
openwebtext_split.py CHANGED
@@ -58,10 +58,8 @@ def custom_iter_archive(path_or_buf, _filter=lambda x: True):
58
  file_obj = stream.extractfile(tarinfo)
59
  with lzma.LZMAFile(file_obj) as inner_stream:
60
  for j, xzinfo in enumerate(inner_stream):
61
- print(j, xzinfo)
62
- if not xzinfo.name.endswith('txt'):
63
- continue
64
- yield xzinfo.name, inner_stream.extractfile(xzinfo)
65
  stream.members = []
66
  del stream
67
  if hasattr(path_or_buf, "read"):
 
58
  file_obj = stream.extractfile(tarinfo)
59
  with lzma.LZMAFile(file_obj) as inner_stream:
60
  for j, xzinfo in enumerate(inner_stream):
61
+ print(type(xzinfo))
62
+ yield xzinfo.name, xzinfo
 
 
63
  stream.members = []
64
  del stream
65
  if hasattr(path_or_buf, "read"):