Datasets:
Update DiaBLa.py
Browse files
DiaBLa.py
CHANGED
@@ -171,14 +171,15 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
171 |
dialogue_info = {k: dialogue[k] for k in dialogue_info_keys}
|
172 |
if dialogue_info['end_time'] is None:
|
173 |
dialogue_info['end_time'] = ''
|
174 |
-
for
|
175 |
-
|
176 |
-
|
177 |
-
for
|
|
|
|
|
178 |
if info_to_remove in dialogue_info[final_eval]:
|
179 |
del dialogue_info[final_eval][info_to_remove]
|
180 |
-
|
181 |
-
print(dialogue_info[final_eval])
|
182 |
# Main data: the utterances
|
183 |
for utterance_id in dialogue['utterances']:
|
184 |
utterance = dialogue['utterances'][utterance_id]
|
|
|
171 |
dialogue_info = {k: dialogue[k] for k in dialogue_info_keys}
|
172 |
if dialogue_info['end_time'] is None:
|
173 |
dialogue_info['end_time'] = ''
|
174 |
+
for final_eval in 'final_evaluation_user1', 'final_evaluation_user2':
|
175 |
+
print(final_eval)
|
176 |
+
print(dialogue_info[final_eval])
|
177 |
+
for info_to_remove in ['interface','verbatim_quality',
|
178 |
+
'particular_problems', 'tech',
|
179 |
+
'would_use', 'timestamp', 'technical_issue']:
|
180 |
if info_to_remove in dialogue_info[final_eval]:
|
181 |
del dialogue_info[final_eval][info_to_remove]
|
182 |
+
|
|
|
183 |
# Main data: the utterances
|
184 |
for utterance_id in dialogue['utterances']:
|
185 |
utterance = dialogue['utterances'][utterance_id]
|