albertvillanova HF staff commited on
Commit
696adee
1 Parent(s): 2097c98

Fix URL in gem dataset for totto config (#4396)

Browse files

* Fix URL for totto config

* Make style

* Update metadata JSON

Commit from https://github.com/huggingface/datasets/commit/24b7af4b825380d43cbbfe00c48bbc60877e7b09

Files changed (2) hide show
  1. dataset_infos.json +0 -0
  2. gem.py +2 -2
dataset_infos.json CHANGED
The diff for this file is too large to render. See raw diff
gem.py CHANGED
@@ -193,7 +193,7 @@ _URLs = {
193
  "challenge_set": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_challenge_sets/schema_guided_dialog.zip",
194
  },
195
  "totto": {
196
- "data": "https://storage.googleapis.com/totto/totto_data.zip",
197
  "challenge_set": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_challenge_sets/totto.zip",
198
  },
199
  "web_nlg_en": {
@@ -1170,8 +1170,8 @@ class Gem(datasets.GeneratorBasedBuilder):
1170
  "highlighted_cells": result["highlighted_cells"],
1171
  "example_id": str(result["example_id"]),
1172
  "overlap_subset": str(result["overlap_subset"]),
 
1173
  }
1174
- response["sentence_annotations"] = [] if split == "test" else result["sentence_annotations"]
1175
  response["references"] = [
1176
  sentence["final_sentence"] for sentence in response["sentence_annotations"]
1177
  ]
193
  "challenge_set": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_challenge_sets/schema_guided_dialog.zip",
194
  },
195
  "totto": {
196
+ "data": "https://storage.googleapis.com/totto-public/totto_data.zip",
197
  "challenge_set": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_challenge_sets/totto.zip",
198
  },
199
  "web_nlg_en": {
1170
  "highlighted_cells": result["highlighted_cells"],
1171
  "example_id": str(result["example_id"]),
1172
  "overlap_subset": str(result["overlap_subset"]),
1173
+ "sentence_annotations": [] if split == "test" else result["sentence_annotations"],
1174
  }
 
1175
  response["references"] = [
1176
  sentence["final_sentence"] for sentence in response["sentence_annotations"]
1177
  ]