Update querie.py
Browse files
querie.py
CHANGED
|
@@ -59,8 +59,7 @@ class querie(datasets.GeneratorBasedBuilder):
|
|
| 59 |
def _info(self):
|
| 60 |
features = datasets.Features(
|
| 61 |
{
|
| 62 |
-
"id": datasets.Value("string")
|
| 63 |
-
"text": datasets.Value("string"),
|
| 64 |
# These are the features of your dataset like images, labels ...
|
| 65 |
}
|
| 66 |
)
|
|
@@ -112,8 +111,7 @@ class querie(datasets.GeneratorBasedBuilder):
|
|
| 112 |
data = json.loads(line)
|
| 113 |
if self.config.name == "german" or self.config.name == "italian" or self.config.name == "french":
|
| 114 |
yield id, {
|
| 115 |
-
"id": data["id"]
|
| 116 |
-
"text": data["text"],
|
| 117 |
}
|
| 118 |
except lzma.LZMAError as e:
|
| 119 |
print(split, e)
|
|
|
|
| 59 |
def _info(self):
|
| 60 |
features = datasets.Features(
|
| 61 |
{
|
| 62 |
+
"id": datasets.Value("string")
|
|
|
|
| 63 |
# These are the features of your dataset like images, labels ...
|
| 64 |
}
|
| 65 |
)
|
|
|
|
| 111 |
data = json.loads(line)
|
| 112 |
if self.config.name == "german" or self.config.name == "italian" or self.config.name == "french":
|
| 113 |
yield id, {
|
| 114 |
+
"id": data["id"]
|
|
|
|
| 115 |
}
|
| 116 |
except lzma.LZMAError as e:
|
| 117 |
print(split, e)
|