rbawden commited on
Commit
0225b93
1 Parent(s): ca3d393

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +20 -18
DiaBLa.py CHANGED
@@ -118,25 +118,27 @@ class Diabla(datasets.GeneratorBasedBuilder):
118
  ),
119
  'dialogue_history': datasets.features.Sequence(
120
  [
121
- 'id': datasets.Value("string"),
122
- 'orig': datasets.Value("string"),
123
- 'norm': datasets.Value("string"),
124
- 'mt': datasets.Value("string"),
125
- 'ref': datasets.Value("string"),
126
- 'utterance_meta': datasets.features.Sequence(
127
  {
128
- 'judgment': ClassLabel(num_classes=3, names=['poor', 'medium', 'perfect']),
129
- 'verbatim': datasets.Value("string"),
130
- 'problems': datasets.features.Sequence(
131
- [
132
- ClassLabel(num_classes=5,
133
- names=['coherence', 'grammar', 'meaning', 'word choice', 'style'])
134
- ]
135
- ),
136
- 'lang': ClassLabel(num_classes=2, names=['en', 'fr']),
137
- }
138
- ),
139
-
 
 
 
 
 
 
 
140
  ]
141
  )
142
  }
 
118
  ),
119
  'dialogue_history': datasets.features.Sequence(
120
  [
121
+ datasets.features.Sequence(
 
 
 
 
 
122
  {
123
+ 'id': datasets.Value("string"),
124
+ 'orig': datasets.Value("string"),
125
+ 'norm': datasets.Value("string"),
126
+ 'mt': datasets.Value("string"),
127
+ 'ref': datasets.Value("string"),
128
+ 'utterance_meta': datasets.features.Sequence(
129
+ {
130
+ 'judgment': ClassLabel(num_classes=3, names=['poor', 'medium', 'perfect']),
131
+ 'verbatim': datasets.Value("string"),
132
+ 'problems': datasets.features.Sequence(
133
+ [
134
+ ClassLabel(num_classes=5,
135
+ names=['coherence', 'grammar', 'meaning', 'word choice', 'style'])
136
+ ]
137
+ ),
138
+ 'lang': ClassLabel(num_classes=2, names=['en', 'fr']),
139
+ }
140
+ ),
141
+ }),
142
  ]
143
  )
144
  }