Datasets:
Update DiaBLa.py
Browse files
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]
|
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]
|