eddie14 commited on
Commit
0c5307d
1 Parent(s): 39c8e72
Files changed (1) hide show
  1. 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 {"text": str(text)}
 
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)