Sebastian Gehrmann commited on
Commit
d36cabe
1 Parent(s): 55dce09

rename fields

Browse files
Files changed (2) hide show
  1. SIMPITIKI.py +4 -2
  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
- "simplified_text": datasets.Value("string"),
 
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
- "simplified_text": data["simplified_text"],
 
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:0e17830a6862e237bb4f80e5704f6236228e716393e91c907add6838aa94731a
3
- size 8777
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:975a02c53aa1d9c6aa704f750ee773114d1021c6af026c001861055256925a2a
3
+ size 8896