Remove gzip because the file is extracted automatically
Browse files- 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
|
| 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:
|