Datasets:
Update DiaBLa.py
Browse files
DiaBLa.py
CHANGED
@@ -118,25 +118,27 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
118 |
),
|
119 |
'dialogue_history': datasets.features.Sequence(
|
120 |
[
|
121 |
-
|
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 |
-
'
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
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 |
}
|