rbawden commited on
Commit
b2b5ad7
1 Parent(s): 90f3403

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +1 -1
DiaBLa.py CHANGED
@@ -162,7 +162,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
162
  'final_evaluation_user1', 'final_evaluation_user2']
163
 
164
  for user in 'user1', 'user2':
165
- dialogue[user]['role_num'] = dialogue[user].get('role_num', dialogue[user]['rolenum'])
166
  for info_to_remove in ['eval-stage', 'useragent', 'rolenum']:
167
  if info_to_remove in dialogue[user]:
168
  del dialogue[user][info_to_remove]
 
162
  'final_evaluation_user1', 'final_evaluation_user2']
163
 
164
  for user in 'user1', 'user2':
165
+ dialogue[user]['role_num'] = dialogue[user].get('role_num', dialogue[user].get('rolenum', ''))
166
  for info_to_remove in ['eval-stage', 'useragent', 'rolenum']:
167
  if info_to_remove in dialogue[user]:
168
  del dialogue[user][info_to_remove]