Update ccnews_split.py
Browse files- ccnews_split.py +0 -2
ccnews_split.py
CHANGED
@@ -23,12 +23,10 @@ from fnmatch import fnmatch
|
|
23 |
|
24 |
import datasets
|
25 |
|
26 |
-
|
27 |
def custom_iter_archive(path_or_buf, _filter=lambda x: True):
|
28 |
def _iter_archive(f):
|
29 |
stream = tarfile.open(fileobj=f, mode="r|*")
|
30 |
for i, tarinfo in enumerate(stream):
|
31 |
-
print(i, tarinfo)
|
32 |
if not _filter(i):
|
33 |
continue
|
34 |
file_path = tarinfo.name
|
|
|
23 |
|
24 |
import datasets
|
25 |
|
|
|
26 |
def custom_iter_archive(path_or_buf, _filter=lambda x: True):
|
27 |
def _iter_archive(f):
|
28 |
stream = tarfile.open(fileobj=f, mode="r|*")
|
29 |
for i, tarinfo in enumerate(stream):
|
|
|
30 |
if not _filter(i):
|
31 |
continue
|
32 |
file_path = tarinfo.name
|