rbawden commited on
Commit
82a987c
1 Parent(s): 67aa832

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +18 -1
DiaBLa.py CHANGED
@@ -84,7 +84,15 @@ class Diabla(datasets.GeneratorBasedBuilder):
84
  'start_time': datasets.Value("string"),
85
  'end_time' : datasets.Value("string"),
86
  'translation_model': datasets.Value("string"),
87
- 'final_evaluation_user1': datasets.Value("string"),
 
 
 
 
 
 
 
 
88
  'final_evaluation_user2': datasets.Value("string"),
89
  'scenario': datasets.features.Sequence(
90
  [
@@ -197,6 +205,15 @@ class Diabla(datasets.GeneratorBasedBuilder):
197
  'ref': reference_text,
198
  'utterance_meta': utterance_info
199
  }
 
 
 
 
 
 
 
 
 
200
  # add to history (without dialogue info and history)
201
  dialogue_history.append(utterance_instance.copy())
202
  utterance_instance['dialogue_meta'] = dialogue_info
 
84
  'start_time': datasets.Value("string"),
85
  'end_time' : datasets.Value("string"),
86
  'translation_model': datasets.Value("string"),
87
+ 'final_evaluation_user1': datasets.features.Sequence(
88
+ {
89
+ "style": ClassLabel(num_classes=3, names=['poor', 'average', 'good', 'excellent']),
90
+ "coherence": ClassLabel(num_classes=3, names=['poor', 'average', 'good', 'excellent']),
91
+ "grammaticality": ClassLabel(num_classes=3, names=['poor', 'average', 'good', 'excellent']),
92
+ "meaning": ClassLabel(num_classes=3, names=['poor', 'average', 'good', 'excellent']),
93
+ "word_choice": ClassLabel(num_classes=3, names=['poor', 'average', 'good',
94
+ },
95
+
96
  'final_evaluation_user2': datasets.Value("string"),
97
  'scenario': datasets.features.Sequence(
98
  [
 
205
  'ref': reference_text,
206
  'utterance_meta': utterance_info
207
  }
208
+ "interface": "",
209
+ "verbatim_quality": datasets.Value("string"),
210
+
211
+ "particular_problems": "",
212
+ "tech": "There were no technical problems",
213
+ "would_use": false,
214
+ "timestamp": "2018-05-18T17:11:39.104833",
215
+
216
+ "technical_issue": "There were no technical problems"
217
  # add to history (without dialogue info and history)
218
  dialogue_history.append(utterance_instance.copy())
219
  utterance_instance['dialogue_meta'] = dialogue_info