Datasets:

ArXiv:
Libraries:
Datasets
License:
gsarti commited on
Commit
6a14e5f
1 Parent(s): 571f43b

Update divemt.py

Browse files
Files changed (1) hide show
  1. divemt.py +20 -22
divemt.py CHANGED
@@ -6,13 +6,16 @@ import pandas as pd
6
  from pprint import pprint
7
 
8
  _CITATION = """
9
- @article{sarti-etal-2022-divemt,
10
- title={{DivEMT}: 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
- journal={ArXiv preprint 2205.12215},
13
- url={https://arxiv.org/abs/2205.12215},
14
- year={2022},
15
- month={may}
 
 
 
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
- datasets.features.Sequence(
108
- {
109
- "id": datasets.Value("string"),
110
- "text": datasets.Value("string"),
111
- "lemma": datasets.Value("string"),
112
- "upos": datasets.Value("string"),
113
- "xpos": datasets.Value("string"),
114
- "feats": datasets.Value("string"),
115
- "head": datasets.Value("int32"),
116
- "deprel": datasets.Value("string"),
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,