rbawden commited on
Commit
f752342
1 Parent(s): 0278bca

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +3 -3
DiaBLa.py CHANGED
@@ -125,10 +125,10 @@ class Diabla(datasets.GeneratorBasedBuilder):
125
  'mt_text': mt_text,
126
  'id': id_,
127
  'ref_text': reference_text,
128
- 'utterance_meta_info': utterance_info,
129
- 'context': dialogue_history
130
  }
131
- # add to history (without dialogue info)
132
  dialogue_history.append(utterance_instance.copy())
133
  utterance_instance['dialogue_meta_info'] = utterance_info
 
134
  yield id_, utterance_instance
 
125
  'mt_text': mt_text,
126
  'id': id_,
127
  'ref_text': reference_text,
128
+ 'utterance_meta_info': utterance_info
 
129
  }
130
+ # add to history (without dialogue info and history)
131
  dialogue_history.append(utterance_instance.copy())
132
  utterance_instance['dialogue_meta_info'] = utterance_info
133
+ utterance_instance['dialogue_history'] = dialogue_history
134
  yield id_, utterance_instance