initial
Browse files- common_crawl.py +1 -1
common_crawl.py
CHANGED
@@ -77,4 +77,4 @@ class CommonCrawl(datasets.GeneratorBasedBuilder):
|
|
77 |
for record in ArchiveIterator(requests.get(filepath.split("::")[1], stream=True).raw, arc2warc=True):
|
78 |
if record.rec_type == 'response' and record.http_headers.get_header('Content-Type') == 'text/html':
|
79 |
text = _decode_text(record.content_stream().read())
|
80 |
-
yield
|
|
|
77 |
for record in ArchiveIterator(requests.get(filepath.split("::")[1], stream=True).raw, arc2warc=True):
|
78 |
if record.rec_type == 'response' and record.http_headers.get_header('Content-Type') == 'text/html':
|
79 |
text = _decode_text(record.content_stream().read())
|
80 |
+
yield "text", str(text)
|