rbawden commited on
Commit
b405879
1 Parent(s): 4f142b4

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +1 -2
DiaBLa.py CHANGED
@@ -191,8 +191,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
191
  'user1', 'user2', 'translation_model',
192
  'final_evaluation_user1', 'final_evaluation_user2']
193
  for user in 'user1', 'user2':
194
- dialogue[user]['lang'] = dialogue[user]['language']
195
- for info_to_remove in ['eval-stage', 'useragent', 'language']:
196
  if info_to_remove in dialogue[user]:
197
  del dialogue[user][info_to_remove]
198
  dialogue_info = {k: dialogue[k] for k in dialogue_info_keys}
 
191
  'user1', 'user2', 'translation_model',
192
  'final_evaluation_user1', 'final_evaluation_user2']
193
  for user in 'user1', 'user2':
194
+ for info_to_remove in ['eval-stage', 'useragent']:
 
195
  if info_to_remove in dialogue[user]:
196
  del dialogue[user][info_to_remove]
197
  dialogue_info = {k: dialogue[k] for k in dialogue_info_keys}