Datasets:
Update divemt.py
Browse files
divemt.py
CHANGED
@@ -74,7 +74,7 @@ class IkNlp22PEStyle(datasets.GeneratorBasedBuilder):
|
|
74 |
|
75 |
def _info(self):
|
76 |
features = {feature: datasets.Value("int32") for feature in self.config.features}
|
77 |
-
for field in ["unit_id", "item_id", "subject_id", "task_type", "translation_type", "src_text", "mt_text", "tgt_text", "aligned_edit"]:
|
78 |
if field in self.config.features:
|
79 |
features[field] = datasets.Value("string")
|
80 |
for field in ["edit_time", "bleu", "chrf", "hter", "n_insert", "n_delete", "n_substitute", "n_shift", "time_s", "time_m", "time_h", 'time_per_char', 'time_per_word', 'key_per_char', 'words_per_hour', 'words_per_minute', 'tot_shifted_words', 'tot_edits', "mt_len_chr", "mt_len_wrd"]:
|
|
|
74 |
|
75 |
def _info(self):
|
76 |
features = {feature: datasets.Value("int32") for feature in self.config.features}
|
77 |
+
for field in ["unit_id", "item_id", "subject_id", "lang_id", "task_type", "translation_type", "src_text", "mt_text", "tgt_text", "aligned_edit"]:
|
78 |
if field in self.config.features:
|
79 |
features[field] = datasets.Value("string")
|
80 |
for field in ["edit_time", "bleu", "chrf", "hter", "n_insert", "n_delete", "n_substitute", "n_shift", "time_s", "time_m", "time_h", 'time_per_char', 'time_per_word', 'key_per_char', 'words_per_hour', 'words_per_minute', 'tot_shifted_words', 'tot_edits', "mt_len_chr", "mt_len_wrd"]:
|