Datasets:
Fix swapped start and exclusive_end fields
#3
by
pietrolesci
- opened
- 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("
|
236 |
-
"exclusive_end": slot.get("
|
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 |
}
|