rbawden commited on
Commit
d874e0b
1 Parent(s): 2d74078

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +2 -26
DiaBLa.py CHANGED
@@ -3,7 +3,6 @@
3
 
4
  import json
5
  import datasets
6
- from datasets.features import ClassLabel
7
 
8
 
9
  logger = datasets.logging.get_logger(__name__)
@@ -137,30 +136,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
137
  )
138
  }
139
  ),
140
- 'dialogue_history': datasets.features.Sequence(
141
- [
142
- datasets.features.Sequence(
143
- {
144
- 'id': datasets.Value('string'),
145
- 'orig': datasets.Value('string'),
146
- 'norm': datasets.Value('string'),
147
- 'mt': datasets.Value('string'),
148
- 'ref': datasets.Value('string'),
149
- 'utterance_meta': datasets.features.Sequence(
150
- {
151
- 'eval-judgment': datasets.Value("string"), # possible values = ['poor', 'medium', 'perfect']
152
- 'eval-verbatim': datasets.Value("string"),
153
- 'eval-problems': datasets.features.Sequence(
154
- [
155
- datasets.Value("string"), # possible values = ['coherence', 'grammar', 'meaning', 'word choice', 'style', 'other']
156
- ]
157
- ),
158
- 'lang': datasets.Value("string"), # possible values = ['english', 'french']
159
- }
160
- ),
161
- }),
162
- ]
163
- )
164
  }
165
  ),
166
  # TODO?
@@ -231,5 +207,5 @@ class Diabla(datasets.GeneratorBasedBuilder):
231
  # add to history (without dialogue info and history)
232
  dialogue_history.append(utterance_instance.copy())
233
  utterance_instance['dialogue_meta'] = dialogue_info
234
- utterance_instance['dialogue_history'] = dialogue_history
235
  yield id_, utterance_instance
 
3
 
4
  import json
5
  import datasets
 
6
 
7
 
8
  logger = datasets.logging.get_logger(__name__)
 
136
  )
137
  }
138
  ),
139
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  }
141
  ),
142
  # TODO?
 
207
  # add to history (without dialogue info and history)
208
  dialogue_history.append(utterance_instance.copy())
209
  utterance_instance['dialogue_meta'] = dialogue_info
210
+ #utterance_instance['dialogue_history'] = dialogue_history
211
  yield id_, utterance_instance