Datasets:
Update DiaBLa.py
Browse files
DiaBLa.py
CHANGED
@@ -67,7 +67,18 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
67 |
'norm': datasets.Value('string'),
|
68 |
'mt': datasets.Value('string'),
|
69 |
'ref': datasets.Value('string'),
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
),
|
73 |
# TODO?
|
@@ -132,7 +143,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
132 |
'mt': mt_text,
|
133 |
'id': id_,
|
134 |
'ref': reference_text,
|
135 |
-
|
136 |
}
|
137 |
|
138 |
# add to history (without dialogue info and history)
|
|
|
67 |
'norm': datasets.Value('string'),
|
68 |
'mt': datasets.Value('string'),
|
69 |
'ref': datasets.Value('string'),
|
70 |
+
'utterance_meta': datasets.features.Sequence(
|
71 |
+
{
|
72 |
+
'eval-judgment': ClassLabel(num_classes=3, names=['poor', 'medium', 'perfect']),
|
73 |
+
'eval-verbatim': datasets.Value('string'),
|
74 |
+
'eval-problems': datasets.features.Sequence(
|
75 |
+
[
|
76 |
+
ClassLabel(num_classes=6, names=['coherence', 'grammar', 'meaning', 'word choice', 'style', 'other'])
|
77 |
+
]
|
78 |
+
),
|
79 |
+
'lang': ClassLabel(num_classes=2, names=['english', 'french']),
|
80 |
+
}
|
81 |
+
),
|
82 |
}
|
83 |
),
|
84 |
# TODO?
|
|
|
143 |
'mt': mt_text,
|
144 |
'id': id_,
|
145 |
'ref': reference_text,
|
146 |
+
'utterance_meta': utterance_info
|
147 |
}
|
148 |
|
149 |
# add to history (without dialogue info and history)
|