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