Datasets:
GEM
/

License:
Sebastian Gehrmann commited on
Commit
78a734e
1 Parent(s): c725894

add references field

Browse files
Files changed (1) hide show
  1. wiki_lingua.py +1 -0
wiki_lingua.py CHANGED
@@ -216,6 +216,7 @@ class WikiLingua(datasets.GeneratorBasedBuilder):
216
  "target_language": d["target"],
217
  "source": d["document"].strip(),
218
  "target": d["summary"].strip(),
 
219
  }
220
  else:
221
  # filter data as needed for train & validation sets
 
216
  "target_language": d["target"],
217
  "source": d["document"].strip(),
218
  "target": d["summary"].strip(),
219
+ "references": [d["summary"].strip()],
220
  }
221
  else:
222
  # filter data as needed for train & validation sets