rbawden commited on
Commit
0140790
1 Parent(s): 7e539c7

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +3 -2
DiaBLa.py CHANGED
@@ -102,8 +102,9 @@ class Diabla(datasets.GeneratorBasedBuilder):
102
  'user1', 'user2', 'translation_model',
103
  'final_evaluation_user1', 'final_evaluation_user2']
104
  for info_to_remove in ['eval-stage', 'useragent']:
105
- del dialogue['user1'][info_to_remove]
106
- del dialogue['user2'][info_to_remove]
 
107
  dialogue_info = {k: dialogue[k] for k in dialogue_info_keys}
108
  # Main data: the utterances
109
  for utterance_id in dialogue['utterances']:
 
102
  'user1', 'user2', 'translation_model',
103
  'final_evaluation_user1', 'final_evaluation_user2']
104
  for info_to_remove in ['eval-stage', 'useragent']:
105
+ for user in 'user1', 'user2':
106
+ if info_t_remove in dialogue[user]:
107
+ del dialogue[user][info_to_remove]
108
  dialogue_info = {k: dialogue[k] for k in dialogue_info_keys}
109
  # Main data: the utterances
110
  for utterance_id in dialogue['utterances']: