Datasets:
Update DiaBLa.py
Browse files
DiaBLa.py
CHANGED
@@ -104,7 +104,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
104 |
dialogue_info = {k: dialogue[k] for k in dialogue_info_keys}
|
105 |
# Main data: the utterances
|
106 |
for utterance_id in dialogue['utterances']:
|
107 |
-
utterance = utterances[utterance_id]
|
108 |
# Meta-information attached to the utterance
|
109 |
utterance_info_keys = ['judgment', 'verbatim', 'problems', 'user']
|
110 |
utterance_info = {'eval-' + k: utterance['eval'][k] for k in utterance_info_keys}
|
|
|
104 |
dialogue_info = {k: dialogue[k] for k in dialogue_info_keys}
|
105 |
# Main data: the utterances
|
106 |
for utterance_id in dialogue['utterances']:
|
107 |
+
utterance = dialogue['utterances'][utterance_id]
|
108 |
# Meta-information attached to the utterance
|
109 |
utterance_info_keys = ['judgment', 'verbatim', 'problems', 'user']
|
110 |
utterance_info = {'eval-' + k: utterance['eval'][k] for k in utterance_info_keys}
|