Sebastian Gehrmann commited on
Commit
d91d186
1 Parent(s): 8199c76
Files changed (1) hide show
  1. schema_guided_dialog.py +2 -4
schema_guided_dialog.py CHANGED
@@ -161,11 +161,9 @@ class SchemaGuidedDialog(datasets.GeneratorBasedBuilder):
161
  else:
162
  examples = json.load(open(filepath, encoding="utf-8"))[split]
163
  for id_, example in enumerate(examples):
 
164
  if not example["target"]:
165
- print(example["prompt"])
166
- print(example["da"])
167
- print(example["prompt"])
168
- example["target"] = "."
169
  yield id_, {
170
  "gem_id": f"schema_guided_dialog-{split}-{id_}",
171
  "gem_parent_id": f"schema_guided_dialog-{split}-{id_}",
161
  else:
162
  examples = json.load(open(filepath, encoding="utf-8"))[split]
163
  for id_, example in enumerate(examples):
164
+ # Fix the one example that has an empty target.
165
  if not example["target"]:
166
+ example["target"] = "Thank you, goodbye."
 
 
 
167
  yield id_, {
168
  "gem_id": f"schema_guided_dialog-{split}-{id_}",
169
  "gem_parent_id": f"schema_guided_dialog-{split}-{id_}",