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