Datasets:

Multilinguality:
multilingual
Size Categories:
1M<n<10M
Language Creators:
found
Annotations Creators:
no-annotation
Source Datasets:
extended|c4
ArXiv:
Tags:
License:
Sean MacAvaney commited on
Commit
e9cb8eb
1 Parent(s): 0807d8d

update loading script

Browse files
Files changed (1) hide show
  1. hc4.py +1 -1
hc4.py CHANGED
@@ -38,7 +38,7 @@ class Hc4(datasets.GeneratorBasedBuilder):
38
  ]
39
 
40
  def _generate_examples(self, filepath):
41
- with gzip.open(filepath, encoding="utf-8") as f:
42
  for key, row in enumerate(f):
43
  data = json.loads(row)
44
  yield key, data
 
38
  ]
39
 
40
  def _generate_examples(self, filepath):
41
+ with gzip.open(filepath) as f:
42
  for key, row in enumerate(f):
43
  data = json.loads(row)
44
  yield key, data