Datasets:
Update DiaBLa.py
Browse files
DiaBLa.py
CHANGED
@@ -172,8 +172,11 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
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 |
-
|
176 |
-
|
|
|
|
|
|
|
177 |
for info_to_remove in ['interface','verbatim_quality',
|
178 |
'particular_problems', 'tech',
|
179 |
'would_use', 'timestamp', 'technical_issue']:
|
|
|
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 |
+
# Initialise when empty
|
176 |
+
if dialogue_info[final_eval] = {}:
|
177 |
+
dialogue_info[final_eval] = {'grammaticality': '', 'meaning': '',
|
178 |
+
'coherence': '', 'style': '', 'word_choice': ''}
|
179 |
+
# Remove some information
|
180 |
for info_to_remove in ['interface','verbatim_quality',
|
181 |
'particular_problems', 'tech',
|
182 |
'would_use', 'timestamp', 'technical_issue']:
|