Sebastian Gehrmann
commited on
Commit
•
d36cabe
1
Parent(s):
55dce09
rename fields
Browse files- SIMPITIKI.py +4 -2
- dataset_infos.json +2 -2
SIMPITIKI.py
CHANGED
@@ -113,7 +113,8 @@ class SIMPITIKI(datasets.GeneratorBasedBuilder):
|
|
113 |
{
|
114 |
"gem_id": datasets.Value("string"),
|
115 |
"text": datasets.Value("string"),
|
116 |
-
"
|
|
|
117 |
"transformation_type":datasets.Value("string"),
|
118 |
"source_dataset":datasets.Value("string")
|
119 |
# These are the features of your dataset like images, labels ...
|
@@ -259,7 +260,8 @@ class SIMPITIKI(datasets.GeneratorBasedBuilder):
|
|
259 |
data = json.loads(row)
|
260 |
yield id_, {
|
261 |
"text": data["text"],
|
262 |
-
"
|
|
|
263 |
"transformation_type":data["transformation_type"],
|
264 |
"source_dataset": data["source_dataset"],
|
265 |
"gem_id": f"gem-SIMPITIKI-{split}-{id_}",
|
|
|
113 |
{
|
114 |
"gem_id": datasets.Value("string"),
|
115 |
"text": datasets.Value("string"),
|
116 |
+
"target": datasets.Value("string"),
|
117 |
+
"references": [datasets.Value("string")],
|
118 |
"transformation_type":datasets.Value("string"),
|
119 |
"source_dataset":datasets.Value("string")
|
120 |
# These are the features of your dataset like images, labels ...
|
|
|
260 |
data = json.loads(row)
|
261 |
yield id_, {
|
262 |
"text": data["text"],
|
263 |
+
"target": data["simplified_text"],
|
264 |
+
"references": [data["simplified_text"]],
|
265 |
"transformation_type":data["transformation_type"],
|
266 |
"source_dataset": data["source_dataset"],
|
267 |
"gem_id": f"gem-SIMPITIKI-{split}-{id_}",
|
dataset_infos.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:975a02c53aa1d9c6aa704f750ee773114d1021c6af026c001861055256925a2a
|
3 |
+
size 8896
|