albertvillanova HF staff pietrolesci commited on
Commit
295337c
1 Parent(s): 6dbc0a3

Fix swapped start and exclusive_end fields (#3)

Browse files

- fix swapped `start` and `exclusive` end fields (3705d8090393a1df8faf1aadbb417421084c31d7)


Co-authored-by: Pietro Lesci <pietrolesci@users.noreply.huggingface.co>

Files changed (1) hide show
  1. multi_woz_v22.py +2 -2
multi_woz_v22.py CHANGED
@@ -232,8 +232,8 @@ class MultiWozV22(datasets.GeneratorBasedBuilder):
232
  {
233
  "slot": slot["slot"],
234
  "value": "" if "copy_from" in slot else slot["value"],
235
- "start": slot.get("exclusive_end", -1),
236
- "exclusive_end": slot.get("start", -1),
237
  "copy_from": slot.get("copy_from", ""),
238
  "copy_from_value": slot["value"] if "copy_from" in slot else [],
239
  }
 
232
  {
233
  "slot": slot["slot"],
234
  "value": "" if "copy_from" in slot else slot["value"],
235
+ "start": slot.get("start", -1),
236
+ "exclusive_end": slot.get("exclusive_end", -1),
237
  "copy_from": slot.get("copy_from", ""),
238
  "copy_from_value": slot["value"] if "copy_from" in slot else [],
239
  }