Datasets:
GEM
/

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
ratishsp commited on
Commit
46ea39f
1 Parent(s): 79ca176

adding target and references columns

Browse files
Files changed (1) hide show
  1. mlb_data_to_text.py +6 -2
mlb_data_to_text.py CHANGED
@@ -211,7 +211,9 @@ class MlbDataToText(datasets.GeneratorBasedBuilder):
211
  datasets.Value("string"),
212
  ],
213
  "summary_eval": datasets.Value("string"),
214
- "gem_id": datasets.Value("string")
 
 
215
  }
216
  )
217
  return datasets.DatasetInfo(
@@ -281,5 +283,7 @@ class MlbDataToText(datasets.GeneratorBasedBuilder):
281
  "home_line": data["home_line"],
282
  "summary": data["summary"],
283
  "summary_eval": data["summary_eval"],
284
- "gem_id": data["gem_id"]
 
 
285
  }
 
211
  datasets.Value("string"),
212
  ],
213
  "summary_eval": datasets.Value("string"),
214
+ "gem_id": datasets.Value("string"),
215
+ "target": datasets.Value("string"),
216
+ "references": [datasets.Value("string")]
217
  }
218
  )
219
  return datasets.DatasetInfo(
 
283
  "home_line": data["home_line"],
284
  "summary": data["summary"],
285
  "summary_eval": data["summary_eval"],
286
+ "gem_id": data["gem_id"],
287
+ "target": data["summary_eval"],
288
+ "references": [data["summary_eval"]]
289
  }