rbawden commited on
Commit
a879a37
1 Parent(s): 489bc09

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +3 -2
DiaBLa.py CHANGED
@@ -193,8 +193,9 @@ class Diabla(datasets.GeneratorBasedBuilder):
193
  for info_to_remove in ['interface','verbatim_quality',
194
  'particular_problems', 'tech',
195
  'would_use', 'timestamp', 'technical_issue']:
196
- del dialogue_info['final_evaluation_user1'][info_to_remove]
197
- del dialogue_info['final_evaluation_user2'][info_to_remove]
 
198
 
199
  # Main data: the utterances
200
  for utterance_id in dialogue['utterances']:
 
193
  for info_to_remove in ['interface','verbatim_quality',
194
  'particular_problems', 'tech',
195
  'would_use', 'timestamp', 'technical_issue']:
196
+ for final_eval in 'final_evaluation_user1', 'final_evaluation_user2':
197
+ if info_to_remove in dialogue_info[final_eval]:
198
+ del dialogue_info[final_eval][info_to_remove]
199
 
200
  # Main data: the utterances
201
  for utterance_id in dialogue['utterances']: