Datasets:
Update divemt.py
Browse files
divemt.py
CHANGED
|
@@ -6,13 +6,16 @@ import pandas as pd
|
|
| 6 |
from pprint import pprint
|
| 7 |
|
| 8 |
_CITATION = """
|
| 9 |
-
@
|
| 10 |
-
title={{
|
| 11 |
-
author=
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
year=
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
"""
|
| 18 |
|
|
@@ -104,21 +107,16 @@ class DivEMT(datasets.GeneratorBasedBuilder):
|
|
| 104 |
features[field] = datasets.Sequence(datasets.Value("string"))
|
| 105 |
if field in _LANG_ANNOTATIONS_FIELDS:
|
| 106 |
features[field] = datasets.features.Sequence(
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
"start_char": datasets.Value("int32"),
|
| 118 |
-
"end_char": datasets.Value("int32"),
|
| 119 |
-
"ner": datasets.Value("string"),
|
| 120 |
-
}
|
| 121 |
-
)
|
| 122 |
)
|
| 123 |
return datasets.DatasetInfo(
|
| 124 |
description=_DESCRIPTION,
|
|
|
|
| 6 |
from pprint import pprint
|
| 7 |
|
| 8 |
_CITATION = """
|
| 9 |
+
@inproceedings{sarti-etal-2022-divemt,
|
| 10 |
+
title = "{D}iv{EMT}: Neural Machine Translation Post-Editing Effort Across Typologically Diverse Languages",
|
| 11 |
+
author = "Sarti, Gabriele and Bisazza, Arianna and Guerberof Arenas, Ana and Toral, Antonio",
|
| 12 |
+
booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing",
|
| 13 |
+
month = dec,
|
| 14 |
+
year = "2022",
|
| 15 |
+
address = "Abu Dhabi, United Arab Emirates",
|
| 16 |
+
publisher = "Association for Computational Linguistics",
|
| 17 |
+
url = "https://aclanthology.org/2022.emnlp-main.532",
|
| 18 |
+
pages = "7795--7816",
|
| 19 |
}
|
| 20 |
"""
|
| 21 |
|
|
|
|
| 107 |
features[field] = datasets.Sequence(datasets.Value("string"))
|
| 108 |
if field in _LANG_ANNOTATIONS_FIELDS:
|
| 109 |
features[field] = datasets.features.Sequence(
|
| 110 |
+
{
|
| 111 |
+
"lemma": datasets.Value("string"),
|
| 112 |
+
"upos": datasets.Value("string"),
|
| 113 |
+
"feats": datasets.Value("string"),
|
| 114 |
+
"head": datasets.Value("string"),
|
| 115 |
+
"deprel": datasets.Value("string"),
|
| 116 |
+
"start_char": datasets.Value("int32"),
|
| 117 |
+
"end_char": datasets.Value("int32"),
|
| 118 |
+
"ner": datasets.Value("string"),
|
| 119 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
)
|
| 121 |
return datasets.DatasetInfo(
|
| 122 |
description=_DESCRIPTION,
|