Datasets:
Update DiaBLa.py
Browse files
DiaBLa.py
CHANGED
@@ -170,6 +170,8 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
170 |
if info_to_remove in dialogue[user]:
|
171 |
del dialogue[user][info_to_remove]
|
172 |
dialogue_info = {k: dialogue[k] for k in dialogue_info_keys}
|
|
|
|
|
173 |
# Main data: the utterances
|
174 |
for utterance_id in dialogue['utterances']:
|
175 |
utterance = dialogue['utterances'][utterance_id]
|
|
|
170 |
if info_to_remove in dialogue[user]:
|
171 |
del dialogue[user][info_to_remove]
|
172 |
dialogue_info = {k: dialogue[k] for k in dialogue_info_keys}
|
173 |
+
if dialogue_info['end_time'] == None:
|
174 |
+
dialogue_info['end_time'] = ''
|
175 |
# Main data: the utterances
|
176 |
for utterance_id in dialogue['utterances']:
|
177 |
utterance = dialogue['utterances'][utterance_id]
|