its5Q commited on
Commit
9b29d14
1 Parent(s): 76e8a25

Remove gzip because the file is extracted automatically

Browse files
Files changed (1) hide show
  1. yandex-q.py +1 -2
yandex-q.py CHANGED
@@ -2,7 +2,6 @@
2
 
3
 
4
  import json
5
- import gzip
6
 
7
  import datasets
8
 
@@ -49,7 +48,7 @@ class YandexQ(datasets.GeneratorBasedBuilder):
49
  ]
50
 
51
  def _generate_examples(self, filepath, split):
52
- with gzip.open(filepath, mode='rt', encoding="utf-8") as f:
53
  for i, line in enumerate(f):
54
  data = json.loads(line)
55
  if data['description'] is None:
 
2
 
3
 
4
  import json
 
5
 
6
  import datasets
7
 
 
48
  ]
49
 
50
  def _generate_examples(self, filepath, split):
51
+ with open(filepath, 'r', encoding="utf-8") as f:
52
  for i, line in enumerate(f):
53
  data = json.loads(line)
54
  if data['description'] is None: