Datasets:
Update DiaBLa.py
Browse files
DiaBLa.py
CHANGED
@@ -203,7 +203,8 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
203 |
}
|
204 |
|
205 |
# add to history (without dialogue info and history)
|
206 |
-
|
207 |
utterance_instance['dialogue_meta'] = dialogue_info
|
208 |
utterance_instance['dialogue_history'] = dialogue_history
|
|
|
209 |
yield id_, utterance_instance
|
|
|
203 |
}
|
204 |
|
205 |
# add to history (without dialogue info and history)
|
206 |
+
minimal_utterance = utterance_instance.copy()
|
207 |
utterance_instance['dialogue_meta'] = dialogue_info
|
208 |
utterance_instance['dialogue_history'] = dialogue_history
|
209 |
+
dialogue_history.append(minimal_utterance)
|
210 |
yield id_, utterance_instance
|