rbawden commited on
Commit
6a62bb3
1 Parent(s): 362ebce

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +5 -2
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
- 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']:
 
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']: