Datasets:
Coldog2333
commited on
Commit
•
cdae8cf
1
Parent(s):
ffc3097
revise generator
Browse files- super_dialseg.py +6 -1
super_dialseg.py
CHANGED
@@ -104,5 +104,10 @@ class SuperDialseg(datasets.GeneratorBasedBuilder):
|
|
104 |
for id_, row in enumerate(data):
|
105 |
yield id_, {
|
106 |
"dial_id": row["dial_id"],
|
107 |
-
"
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
|
|
104 |
for id_, row in enumerate(data):
|
105 |
yield id_, {
|
106 |
"dial_id": row["dial_id"],
|
107 |
+
"utterance": [utterance for utterance in row["turns"]["utterance"]],
|
108 |
+
"segmentation_label": [segmentation_label for segmentation_label in row["turns"]["segmentation_label"]],
|
109 |
+
"da": [da for da in row["turns"]["da"]],
|
110 |
+
"role": [role for role in row["turns"]["role"]],
|
111 |
+
"turn_id": [turn_id for turn_id in row["turns"]["turn_id"]],
|
112 |
+
"topic_id": [topic_id for topic_id in row["turns"]["topic_id"]]
|
113 |
}
|