rbawden commited on
Commit
cc2a0c5
·
1 Parent(s): 204dfe0

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +2 -25
DiaBLa.py CHANGED
@@ -79,30 +79,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
79
  }
80
  ),
81
 
82
- 'dialogue_history': datasets.features.Sequence(
83
- [
84
- datasets.features.Sequence(
85
- {
86
- 'id': datasets.Value('string'),
87
- 'orig': datasets.Value('string'),
88
- 'norm': datasets.Value('string'),
89
- 'mt': datasets.Value('string'),
90
- 'ref': datasets.Value('string'),
91
- 'utterance_meta': datasets.features.Sequence(
92
- {
93
- 'eval-judgment': datasets.Value("string"), # possible values = ['poor', 'medium', 'perfect']
94
- 'eval-verbatim': datasets.Value("string"),
95
- 'eval-problems': datasets.features.Sequence(
96
- [
97
- datasets.Value("string"), # possible values = ['coherence', 'grammar', 'meaning', 'word choice', 'style', 'other']
98
- ]
99
- ),
100
- 'lang': datasets.Value("string"), # possible values = ['english', 'french']
101
- }
102
- ),
103
- }),
104
- ]
105
- )
106
  }
107
  ),
108
  # TODO?
@@ -173,5 +150,5 @@ class Diabla(datasets.GeneratorBasedBuilder):
173
  # add to history (without dialogue info and history)
174
  dialogue_history.append(utterance_instance.copy())
175
  #utterance_instance['dialogue_meta'] = dialogue_info
176
- utterance_instance['dialogue_history'] = dialogue_history
177
  yield id_, utterance_instance
 
79
  }
80
  ),
81
 
82
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  }
84
  ),
85
  # TODO?
 
150
  # add to history (without dialogue info and history)
151
  dialogue_history.append(utterance_instance.copy())
152
  #utterance_instance['dialogue_meta'] = dialogue_info
153
+ #utterance_instance['dialogue_history'] = dialogue_history
154
  yield id_, utterance_instance