Datasets:
Update DiaBLa.py
Browse files
DiaBLa.py
CHANGED
@@ -77,13 +77,72 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
77 |
names=['coherence', 'grammar', 'meaning', 'word choice', 'style']
|
78 |
)
|
79 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
)
|
81 |
}
|
82 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
),
|
85 |
-
#
|
86 |
-
# and context as input).
|
87 |
supervised_keys=None,
|
88 |
homepage='https://github.com/rbawden/DiaBLa-dataset',
|
89 |
citation=_CITATION,
|
|
|
77 |
names=['coherence', 'grammar', 'meaning', 'word choice', 'style']
|
78 |
)
|
79 |
]
|
80 |
+
'lang': ClassLabel(num_classes=2, names=['en', 'fr']),
|
81 |
+
}
|
82 |
+
),
|
83 |
+
'dialogue_meta': datasets.features.Sequence(
|
84 |
+
{
|
85 |
+
'start_time': datasets.Value("string"),
|
86 |
+
'end_time', : datasets.Value("string"),
|
87 |
+
'translation_model': datasets.Value("string"),
|
88 |
+
'final_evaluation_user1': datasets.Value("string"),
|
89 |
+
'final_evaluation_user2': datasets.Value("string"),
|
90 |
+
'scenario': datasets.features.Sequence(
|
91 |
+
[
|
92 |
+
datasets.features.Sequence([datasets.Value("string"),
|
93 |
+
datasets.Value("string")]),
|
94 |
+
datasets.features.Sequence([datasets.Value("string"),
|
95 |
+
datasets.Value("string")]),
|
96 |
+
datasets.features.Sequence([datasets.Value("string"),
|
97 |
+
datasets.Value("string")])
|
98 |
+
]
|
99 |
+
)
|
100 |
+
'user1': datasets.features.Sequence(
|
101 |
+
{
|
102 |
+
'rolenum': datasets.Value("int64"),
|
103 |
+
'role': datasets.Value("string"),
|
104 |
+
'initiated_dialogue': datasets.Value("bool"),
|
105 |
+
'turn_number': datasets.Value("int64"),
|
106 |
+
'lang': datasets.Value("string"),
|
107 |
+
}
|
108 |
+
)
|
109 |
+
'user2': datasets.features.Sequence(
|
110 |
+
{
|
111 |
+
'rolenum': datasets.Value("int64"),
|
112 |
+
'role': datasets.Value("string"),
|
113 |
+
'initiated_dialogue': datasets.Value("bool"),
|
114 |
+
'turn_number': datasets.Value("int64"),
|
115 |
+
'lang': datasets.Value("string"),
|
116 |
+
}
|
117 |
)
|
118 |
}
|
119 |
),
|
120 |
+
'dialogue_history': datasets.features.Sequence(
|
121 |
+
[
|
122 |
+
'id': datasets.Value("string"),
|
123 |
+
'orig': datasets.Value("string"),
|
124 |
+
'norm': datasets.Value("string"),
|
125 |
+
'mt': datasets.Value("string"),
|
126 |
+
'ref': datasets.Value("string"),
|
127 |
+
'utterance_meta': datasets.features.Sequence(
|
128 |
+
{
|
129 |
+
'judgment': ClassLabel(num_classes=3, names=['poor', 'medium', 'perfect']),
|
130 |
+
'verbatim': datasets.Value("string"),
|
131 |
+
'problems': datasets.features.Sequence(
|
132 |
+
[
|
133 |
+
ClassLabel(num_classes=5,
|
134 |
+
names=['coherence', 'grammar', 'meaning', 'word choice', 'style']
|
135 |
+
)
|
136 |
+
]
|
137 |
+
'lang': ClassLabel(num_classes=2, names=['en', 'fr']),
|
138 |
+
}
|
139 |
+
),
|
140 |
+
|
141 |
+
]
|
142 |
+
)
|
143 |
}
|
144 |
),
|
145 |
+
# TODO?
|
|
|
146 |
supervised_keys=None,
|
147 |
homepage='https://github.com/rbawden/DiaBLa-dataset',
|
148 |
citation=_CITATION,
|