Datasets:
Coldog2333
commited on
Commit
•
3adf26a
1
Parent(s):
6542569
fix bugs
Browse files- super_dialseg.py +6 -6
super_dialseg.py
CHANGED
@@ -100,10 +100,10 @@ class SuperDialseg(datasets.GeneratorBasedBuilder):
|
|
100 |
for id_, row in enumerate(data):
|
101 |
yield id_, {
|
102 |
"dial_id": row["dial_id"],
|
103 |
-
"utterance": [utterance for
|
104 |
-
"segmentation_label": [segmentation_label for
|
105 |
-
"da": [da for
|
106 |
-
"role": [role for
|
107 |
-
"turn_id": [turn_id for
|
108 |
-
"topic_id": [topic_id for
|
109 |
}
|
|
|
100 |
for id_, row in enumerate(data):
|
101 |
yield id_, {
|
102 |
"dial_id": row["dial_id"],
|
103 |
+
"utterance": [turn["utterance"] for turn in row["turns"]],
|
104 |
+
"segmentation_label": [turn["segmentation_label"] for turn in row["turns"]],
|
105 |
+
"da": [turn["da"] for turn in row["turns"]],
|
106 |
+
"role": [turn["role"] for turn in row["turns"]],
|
107 |
+
"turn_id": [turn["turn_id"] for turn in row["turns"]],
|
108 |
+
"topic_id": [turn["topic_id"] for turn in row["turns"]]
|
109 |
}
|