Datasets:
Update DiaBLa.py
Browse files
DiaBLa.py
CHANGED
@@ -180,7 +180,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
180 |
# Meta-information attached to the utterance
|
181 |
utterance_info_keys = ['judgment', 'verbatim', 'problems']
|
182 |
utterance_info = {'eval-' + k: utterance['eval'][k] for k in utterance_info_keys}
|
183 |
-
utterance_info['
|
184 |
# Utterance text
|
185 |
original_text = utterance['original_text']
|
186 |
mt_text = utterance['postprocessed_text']
|
|
|
180 |
# Meta-information attached to the utterance
|
181 |
utterance_info_keys = ['judgment', 'verbatim', 'problems']
|
182 |
utterance_info = {'eval-' + k: utterance['eval'][k] for k in utterance_info_keys}
|
183 |
+
utterance_info['lang'] = utterance['language']
|
184 |
# Utterance text
|
185 |
original_text = utterance['original_text']
|
186 |
mt_text = utterance['postprocessed_text']
|