rbawden commited on
Commit
362ebce
1 Parent(s): 6528dd8

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +7 -6
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 info_to_remove in ['interface','verbatim_quality',
175
- 'particular_problems', 'tech',
176
- 'would_use', 'timestamp', 'technical_issue']:
177
- for final_eval in 'final_evaluation_user1', 'final_evaluation_user2':
 
 
178
  if info_to_remove in dialogue_info[final_eval]:
179
  del dialogue_info[final_eval][info_to_remove]
180
- print(final_eval)
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]