rbawden commited on
Commit
a18612b
1 Parent(s): 2308981

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +2 -1
DiaBLa.py CHANGED
@@ -203,7 +203,8 @@ class Diabla(datasets.GeneratorBasedBuilder):
203
  }
204
 
205
  # add to history (without dialogue info and history)
206
- dialogue_history.append(utterance_instance.copy())
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