Datasets:
Update files from the datasets library (from 1.6.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.0
- multi_woz_v22.py +2 -3
multi_woz_v22.py
CHANGED
|
@@ -14,7 +14,6 @@
|
|
| 14 |
# limitations under the License.
|
| 15 |
"""MultiWOZ v2.2: Multi-domain Wizard of OZ version 2.2"""
|
| 16 |
|
| 17 |
-
from __future__ import absolute_import, division, print_function
|
| 18 |
|
| 19 |
import json
|
| 20 |
|
|
@@ -252,8 +251,8 @@ class MultiWozV22(datasets.GeneratorBasedBuilder):
|
|
| 252 |
{
|
| 253 |
"act_type": act_type,
|
| 254 |
"act_slots": {
|
| 255 |
-
"slot_name": [
|
| 256 |
-
"slot_value": [
|
| 257 |
},
|
| 258 |
}
|
| 259 |
for act_type, dialog_act in mapped_acts.get(turn["turn_id"], {})
|
|
|
|
| 14 |
# limitations under the License.
|
| 15 |
"""MultiWOZ v2.2: Multi-domain Wizard of OZ version 2.2"""
|
| 16 |
|
|
|
|
| 17 |
|
| 18 |
import json
|
| 19 |
|
|
|
|
| 251 |
{
|
| 252 |
"act_type": act_type,
|
| 253 |
"act_slots": {
|
| 254 |
+
"slot_name": [sl_name for sl_name, sl_val in dialog_act],
|
| 255 |
+
"slot_value": [sl_val for sl_name, sl_val in dialog_act],
|
| 256 |
},
|
| 257 |
}
|
| 258 |
for act_type, dialog_act in mapped_acts.get(turn["turn_id"], {})
|