zqwerty
commited on
Commit
•
daf5af2
1
Parent(s):
4f0ba2e
update script
Browse files- CrossWOZ.py +10 -10
CrossWOZ.py
CHANGED
@@ -54,15 +54,15 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
|
|
54 |
"dialog_id": datasets.Value("string"),
|
55 |
"sys_id": datasets.Value("int32"),
|
56 |
"usr_id": datasets.Value("int32"),
|
57 |
-
"goal": datasets.Sequence(
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
),
|
66 |
"task description": datasets.Value("string"),
|
67 |
"type": datasets.Value("string"),
|
68 |
"messages": datasets.Sequence(
|
@@ -328,7 +328,7 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
|
|
328 |
"dialog_id": dialog_id,
|
329 |
"sys_id": dialog["sys-usr"][0],
|
330 |
"usr_id": dialog["sys-usr"][1],
|
331 |
-
"goal":
|
332 |
"task description": dialog["task description"],
|
333 |
"type": dialog["type"],
|
334 |
"messages": messages,
|
|
|
54 |
"dialog_id": datasets.Value("string"),
|
55 |
"sys_id": datasets.Value("int32"),
|
56 |
"usr_id": datasets.Value("int32"),
|
57 |
+
"goal": datasets.Sequence((datasets.Value("int32"),datasets.Value("string"),datasets.Value("string"),datasets.Value("string"),datasets.Value("bool"))),
|
58 |
+
# {
|
59 |
+
# "sub_goal_id": datasets.Value("int32"),
|
60 |
+
# "domain": datasets.Value("string"),
|
61 |
+
# "slot": datasets.Value("string"),
|
62 |
+
# "value": datasets.Value("string"),
|
63 |
+
# "has_mentioned": datasets.Value("bool"),
|
64 |
+
# }
|
65 |
+
# ),
|
66 |
"task description": datasets.Value("string"),
|
67 |
"type": datasets.Value("string"),
|
68 |
"messages": datasets.Sequence(
|
|
|
328 |
"dialog_id": dialog_id,
|
329 |
"sys_id": dialog["sys-usr"][0],
|
330 |
"usr_id": dialog["sys-usr"][1],
|
331 |
+
"goal": list(map(tuple, dialog["goal"])),
|
332 |
"task description": dialog["task description"],
|
333 |
"type": dialog["type"],
|
334 |
"messages": messages,
|