Datasets:
parquet-converter
commited on
Commit
·
be0e314
1
Parent(s):
2f9ef10
Update parquet files
Browse files- .gitattributes +0 -54
- README.md +0 -159
- context_en_ar/mt_geneval-test.parquet +3 -0
- context_en_ar/mt_geneval-train.parquet +3 -0
- context_en_de/mt_geneval-test.parquet +3 -0
- context_en_de/mt_geneval-train.parquet +3 -0
- context_en_es/mt_geneval-test.parquet +3 -0
- context_en_es/mt_geneval-train.parquet +3 -0
- context_en_fr/mt_geneval-test.parquet +3 -0
- context_en_fr/mt_geneval-train.parquet +3 -0
- context_en_hi/mt_geneval-test.parquet +3 -0
- context_en_hi/mt_geneval-train.parquet +3 -0
- context_en_it/mt_geneval-test.parquet +3 -0
- context_en_it/mt_geneval-train.parquet +3 -0
- context_en_pt/mt_geneval-test.parquet +3 -0
- context_en_pt/mt_geneval-train.parquet +3 -0
- context_en_ru/mt_geneval-test.parquet +3 -0
- context_en_ru/mt_geneval-train.parquet +3 -0
- dataset_infos.json +0 -1
- mt_geneval.py +0 -236
- sentences_en_ar/mt_geneval-test.parquet +3 -0
- sentences_en_ar/mt_geneval-train.parquet +3 -0
- sentences_en_de/mt_geneval-test.parquet +3 -0
- sentences_en_de/mt_geneval-train.parquet +3 -0
- sentences_en_es/mt_geneval-test.parquet +3 -0
- sentences_en_es/mt_geneval-train.parquet +3 -0
- sentences_en_fr/mt_geneval-test.parquet +3 -0
- sentences_en_fr/mt_geneval-train.parquet +3 -0
- sentences_en_hi/mt_geneval-test.parquet +3 -0
- sentences_en_hi/mt_geneval-train.parquet +3 -0
- sentences_en_it/mt_geneval-test.parquet +3 -0
- sentences_en_it/mt_geneval-train.parquet +3 -0
- sentences_en_pt/mt_geneval-test.parquet +3 -0
- sentences_en_pt/mt_geneval-train.parquet +3 -0
- sentences_en_ru/mt_geneval-test.parquet +3 -0
- sentences_en_ru/mt_geneval-train.parquet +3 -0
.gitattributes
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
27 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
28 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
-
# Audio files - uncompressed
|
37 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
38 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
39 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
40 |
-
# Audio files - compressed
|
41 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
42 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
43 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
44 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
45 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
46 |
-
# Image files - uncompressed
|
47 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
48 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
49 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
50 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
51 |
-
# Image files - compressed
|
52 |
-
*.jpg filter=lfs diff=lfs merge=lfs -text
|
53 |
-
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
54 |
-
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,159 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- expert-generated
|
4 |
-
language:
|
5 |
-
- en
|
6 |
-
- it
|
7 |
-
- fr
|
8 |
-
- ar
|
9 |
-
- de
|
10 |
-
- hi
|
11 |
-
- pt
|
12 |
-
- ru
|
13 |
-
- es
|
14 |
-
language_creators:
|
15 |
-
- expert-generated
|
16 |
-
license:
|
17 |
-
- cc-by-sa-3.0
|
18 |
-
multilinguality:
|
19 |
-
- translation
|
20 |
-
pretty_name: mt_geneval
|
21 |
-
size_categories:
|
22 |
-
- 1K<n<10K
|
23 |
-
source_datasets:
|
24 |
-
- original
|
25 |
-
tags:
|
26 |
-
- gender
|
27 |
-
- constrained mt
|
28 |
-
task_categories:
|
29 |
-
- translation
|
30 |
-
task_ids: []
|
31 |
-
---
|
32 |
-
|
33 |
-
# Dataset Card for MT-GenEval
|
34 |
-
|
35 |
-
## Table of Contents
|
36 |
-
|
37 |
-
- [Dataset Card for MT-GenEval](#dataset-card-for-mt-geneval)
|
38 |
-
- [Table of Contents](#table-of-contents)
|
39 |
-
- [Dataset Description](#dataset-description)
|
40 |
-
- [Dataset Summary](#dataset-summary)
|
41 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
42 |
-
- [Machine Translation](#machine-translation)
|
43 |
-
- [Languages](#languages)
|
44 |
-
- [Dataset Structure](#dataset-structure)
|
45 |
-
- [Data Instances](#data-instances)
|
46 |
-
- [Data Splits](#data-splits)
|
47 |
-
- [Dataset Creation](#dataset-creation)
|
48 |
-
- [Additional Information](#additional-information)
|
49 |
-
- [Dataset Curators](#dataset-curators)
|
50 |
-
- [Licensing Information](#licensing-information)
|
51 |
-
- [Citation Information](#citation-information)
|
52 |
-
|
53 |
-
## Dataset Description
|
54 |
-
|
55 |
-
- **Repository:** [Github](https://github.com/amazon-science/machine-translation-gender-eval)
|
56 |
-
- **Paper:** [EMNLP 2022](https://arxiv.org/abs/2211.01355)
|
57 |
-
- **Point of Contact:** [Anna Currey](mailto:[email protected])
|
58 |
-
|
59 |
-
### Dataset Summary
|
60 |
-
|
61 |
-
The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, Portuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words, and contrastive original-invertend translations with additional preceding context.
|
62 |
-
|
63 |
-
**Disclaimer**: *The MT-GenEval benchmark was released in the EMNLP 2022 paper [MT-GenEval: A Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation](https://arxiv.org/abs/2211.01355) by Anna Currey, Maria Nadejde, Raghavendra Pappagari, Mia Mayer, Stanislas Lauly, Xing Niu, Benjamin Hsu, and Georgiana Dinu and is hosted through Github by the [Amazon Science](https://github.com/amazon-science?type=source) organization. The dataset is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License](https://creativecommons.org/licenses/by-sa/3.0/).*
|
64 |
-
|
65 |
-
### Supported Tasks and Leaderboards
|
66 |
-
#### Machine Translation
|
67 |
-
Refer to the [original paper](https://arxiv.org/abs/2211.01355) for additional details on gender accuracy evaluation with MT-GenEval.
|
68 |
-
### Languages
|
69 |
-
The dataset contains source English sentences extracted from Wikipedia translated into the following languages: Arabic (`ar`), French (`fr`), German (`de`), Hindi (`hi`), Italian (`it`), Portuguese (`pt`), Russian (`ru`), and Spanish (`es`).
|
70 |
-
## Dataset Structure
|
71 |
-
### Data Instances
|
72 |
-
|
73 |
-
The dataset contains two configuration types, `sentences` and `context`, mirroring the original repository structure, with source and target language specified in the configuration name (e.g. `sentences_en_ar`, `context_en_it`) The `sentences` configurations contains masculine and feminine versions of individual sentences with gendered word annotations. Here is an example entry of the `sentences_en_it` split (all `sentences_en_XX` splits have the same structure):
|
74 |
-
|
75 |
-
```json
|
76 |
-
{
|
77 |
-
{
|
78 |
-
"orig_id": 0,
|
79 |
-
"source_feminine": "Pagratidis quickly recanted her confession, claiming she was psychologically pressured and beaten, and until the moment of her execution, she remained firm in her innocence.",
|
80 |
-
"reference_feminine": "Pagratidis subito ritrattò la sua confessione, affermando che era aveva subito pressioni psicologiche e era stata picchiata, e fino al momento della sua esecuzione, rimase ferma sulla sua innocenza.",
|
81 |
-
"source_masculine": "Pagratidis quickly recanted his confession, claiming he was psychologically pressured and beaten, and until the moment of his execution, he remained firm in his innocence.",
|
82 |
-
"reference_masculine": "Pagratidis subito ritrattò la sua confessione, affermando che era aveva subito pressioni psicologiche e era stato picchiato, e fino al momento della sua esecuzione, rimase fermo sulla sua innocenza.",
|
83 |
-
"source_feminine_annotated": "Pagratidis quickly recanted <F>her</F> confession, claiming <F>she</F> was psychologically pressured and beaten, and until the moment of <F>her</F> execution, <F>she</F> remained firm in <F>her</F> innocence.",
|
84 |
-
"reference_feminine_annotated": "Pagratidis subito ritrattò la sua confessione, affermando che era aveva subito pressioni psicologiche e era <F>stata picchiata</F>, e fino al momento della sua esecuzione, rimase <F>ferma</F> sulla sua innocenza.",
|
85 |
-
"source_masculine_annotated": "Pagratidis quickly recanted <M>his</M> confession, claiming <M>he</M> was psychologically pressured and beaten, and until the moment of <M>his</M> execution, <M>he</M> remained firm in <M>his</M> innocence.",
|
86 |
-
"reference_masculine_annotated": "Pagratidis subito ritrattò la sua confessione, affermando che era aveva subito pressioni psicologiche e era <M>stato picchiato</M>, e fino al momento della sua esecuzione, rimase <M>fermo</M> sulla sua innocenza.",
|
87 |
-
"source_feminine_keywords": "her;she;her;she;her",
|
88 |
-
"reference_feminine_keywords": "stata picchiata;ferma",
|
89 |
-
"source_masculine_keywords": "his;he;his;he;his",
|
90 |
-
"reference_masculine_keywords": "stato picchiato;fermo",
|
91 |
-
}
|
92 |
-
}
|
93 |
-
```
|
94 |
-
|
95 |
-
The `context` configuration contains instead different English sources related to stereotypical professional roles with additional preceding context and contrastive original-inverted translations. Here is an example entry of the `context_en_it` split (all `context_en_XX` splits have the same structure):
|
96 |
-
|
97 |
-
```json
|
98 |
-
{
|
99 |
-
"orig_id": 0,
|
100 |
-
"context": "Pierpont told of entering and holding up the bank and then fleeing to Fort Wayne, where the loot was divided between him and three others.",
|
101 |
-
"source": "However, Pierpont stated that Skeer was the planner of the robbery.",
|
102 |
-
"reference_original": "Comunque, Pierpont disse che Skeer era il pianificatore della rapina.",
|
103 |
-
"reference_flipped": "Comunque, Pierpont disse che Skeer era la pianificatrice della rapina."
|
104 |
-
}
|
105 |
-
```
|
106 |
-
|
107 |
-
### Data Splits
|
108 |
-
|
109 |
-
All `sentences_en_XX` configurations have 1200 examples in the `train` split and 300 in the `test` split. For the `context_en_XX` configurations, the number of example depends on the language pair:
|
110 |
-
|
111 |
-
| Configuration | # Train | # Test |
|
112 |
-
| :-----------: | :--------: | :-----: |
|
113 |
-
| `context_en_ar` | 792 | 1100 |
|
114 |
-
| `context_en_fr` | 477 | 1099 |
|
115 |
-
| `context_en_de` | 598 | 1100 |
|
116 |
-
| `context_en_hi` | 397 | 1098 |
|
117 |
-
| `context_en_it` | 465 | 1904 |
|
118 |
-
| `context_en_pt` | 574 | 1089 |
|
119 |
-
| `context_en_ru` | 583 | 1100 |
|
120 |
-
| `context_en_es` | 534 | 1096 |
|
121 |
-
|
122 |
-
### Dataset Creation
|
123 |
-
|
124 |
-
From the original paper:
|
125 |
-
|
126 |
-
>In developing MT-GenEval, our goal was to create a realistic, gender-balanced dataset that naturally incorporates a diverse range of gender phenomena. To this end, we extracted English source sentences from Wikipedia as the basis for our dataset. We automatically pre-selected relevant sentences using EN gender-referring words based on the list provided by [Zhao et al. (2018)](https://doi.org/10.18653/v1/N18-2003).
|
127 |
-
|
128 |
-
Please refer to the original article [MT-GenEval: A Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation](https://arxiv.org/abs/2211.01355) for additional information on dataset creation.
|
129 |
-
|
130 |
-
## Additional Information
|
131 |
-
### Dataset Curators
|
132 |
-
|
133 |
-
The original authors of MT-GenEval are the curators of the original dataset. For problems or updates on this 🤗 Datasets version, please contact [[email protected]](mailto:[email protected]).
|
134 |
-
|
135 |
-
### Licensing Information
|
136 |
-
|
137 |
-
The dataset is licensed under the [Creative Commons Attribution-ShareAlike 3.0 International License](https://creativecommons.org/licenses/by-sa/3.0/).
|
138 |
-
|
139 |
-
### Citation Information
|
140 |
-
Please cite the authors if you use these corpora in your work.
|
141 |
-
|
142 |
-
```bibtex
|
143 |
-
@inproceedings{currey-etal-2022-mtgeneval,
|
144 |
-
title = "{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation",
|
145 |
-
author = "Currey, Anna and
|
146 |
-
Nadejde, Maria and
|
147 |
-
Pappagari, Raghavendra and
|
148 |
-
Mayer, Mia and
|
149 |
-
Lauly, Stanislas, and
|
150 |
-
Niu, Xing and
|
151 |
-
Hsu, Benjamin and
|
152 |
-
Dinu, Georgiana",
|
153 |
-
booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing",
|
154 |
-
month = dec,
|
155 |
-
year = "2022",
|
156 |
-
publisher = "Association for Computational Linguistics",
|
157 |
-
url = "https://arxiv.org/abs/2211.01355",
|
158 |
-
}
|
159 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context_en_ar/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae5e9435fcfee73261c0aa33f54143891d5c8ca15a4acc05476b2416299930cb
|
3 |
+
size 422684
|
context_en_ar/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1123efb5ff78f9258d1a993088f4562121e3cff3bcbd09ffa78e707a67842b0d
|
3 |
+
size 311246
|
context_en_de/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:100d6694128d2a95c7b7c6dc88e802c2605d0d993730010d6155b8f2e220fdba
|
3 |
+
size 400454
|
context_en_de/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:90f89180b3c7731c08faf86bcf80913571bd654b45ac0342eee85ffdc7df5cec
|
3 |
+
size 220267
|
context_en_es/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:db77ada60963589aab3b457b7573254a2a118ca0d37bc5bacdf96f0f51fc7a4f
|
3 |
+
size 393426
|
context_en_es/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93ff9d8cfad1ed8c739fda0ec36b3b9c86da7e83638f9f777a4275fd0eeae150
|
3 |
+
size 191508
|
context_en_fr/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f2455871d5e429ff0d7f6cdf2308b511aea4cf960bdb2fac49f1cbf98278280
|
3 |
+
size 403454
|
context_en_fr/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8bfc7446cf8d14ad932970a0b0d57e85673061cab25761bc31fd31bc66b61fb2
|
3 |
+
size 178485
|
context_en_hi/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:84a7f8ff961ce4724fbeb6a2a61c7d5e2528021d2e0907ce973071acc1e06e67
|
3 |
+
size 471953
|
context_en_hi/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:277a5069ba122ee9d4a254c4c3a76ffb0bc7c8f2b6e61722cd5a4767a739a76f
|
3 |
+
size 176858
|
context_en_it/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d80a716a100e8bd28f711066fdbef84f0fd6a3a8249e9e41c2deca1e79f9a3d
|
3 |
+
size 393538
|
context_en_it/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8d44ddfc4e9bd5e84eea1f01b6013bfc5b536242ab4f22137e17fc829d902d61
|
3 |
+
size 171662
|
context_en_pt/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:366bb118480ab0f7d907c6d89734d2f85a294851d59f5dac5b728be51385b361
|
3 |
+
size 390043
|
context_en_pt/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7c75da7ef49cca2638e170255912f4e72b105e5ab931f21a9f36ec6ebbc66edf
|
3 |
+
size 205158
|
context_en_ru/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63c2e718a70362284a75ab9acbb5a2dbee7a383cc12f9d943eff9ebcffcd326c
|
3 |
+
size 471127
|
context_en_ru/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:98fff3ae3d3d41d9f335475b7c5f753f755b4eae2ffc1e0835c52a149ee8094e
|
3 |
+
size 251641
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"sentences_en_ar": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "source_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "sentences_en_ar", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1670189, "num_examples": 1200, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 447831, "num_examples": 300, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_ar.en": {"num_bytes": 155233, "checksum": "0578298bb560f46f2e9ed13d3f57fdef59476a1d3ac45c9b69bda846f15ed322"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_ar.en": {"num_bytes": 171669, "checksum": "fe70b99e76626d090ee392a2991dd7993b63ad0df897b8539bccc6a3f80dc4a1"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_ar.en": {"num_bytes": 153507, "checksum": "1d94bead6696733e54a1828054d64f412e0fe07ca1b3662c441c827fbda26c14"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_ar.en": {"num_bytes": 169950, "checksum": "80135e2a2ea7bf986eb7d380fb765949d49861c799aa542cc8eb922702a7c644"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_ar.ar": {"num_bytes": 231160, "checksum": "b2f086853e20c334aa39d07a7b8eabd67f7a43381f5bd3fe47cfb38664a2ea20"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_ar.ar": {"num_bytes": 253718, "checksum": "825c8a1ee5077b0d34bddd21f5eee3b1648f0e2a07e4684c298bbb11b8b53edb"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_ar.ar": {"num_bytes": 225075, "checksum": "8749b0f97a403a0b09716c8f201f7be10355d94dc21ec748884604379fd56fde"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_ar.ar": {"num_bytes": 247477, "checksum": "d16140775d4a3c2fb6d5d85503c8e207e7c1dd5fc6cf76cf07c1a304476a15f2"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_ar.en": {"num_bytes": 41421, "checksum": "ed189d8ff263038b87e078e0aa26a6502a7c76b63ed61c6ca771b31cde6445d3"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_ar.en": {"num_bytes": 45698, "checksum": "45c7358c376ff76c17717d51e6b3fe9c8cdb5e5f147a38737e84b3a1e69361f4"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_ar.en": {"num_bytes": 40956, "checksum": "ab0d23675a0a79c9cc67821ad892e887f28ab05dff88eb7e5d4bfe679c6d98cb"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_ar.en": {"num_bytes": 45233, "checksum": "8d03158bd2433f192ec2e32a498590dd5d96ee3e10d34c0a9598dbdf1e680f69"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_ar.ar": {"num_bytes": 62196, "checksum": "fc3bdb1937eb58f946176495fb7b41aa520c3cdf9d5f3c378f4255c7f19e571f"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_ar.ar": {"num_bytes": 69076, "checksum": "2fa82626d21975f6b57cb89f06ff8efd20847c40fe50fe3185f59630d8302834"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_ar.ar": {"num_bytes": 60424, "checksum": "ad6772e0aac7fcf98d6eb404822986ed274eaa7f6c016dfe335f283d473f124b"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_ar.ar": {"num_bytes": 67227, "checksum": "056423945f9b18b64bbc7a2e1221ad6c7407e1b638f399abb83f848e1b7e086f"}}, "download_size": 2040020, "post_processing_size": null, "dataset_size": 2118020, "size_in_bytes": 4158040}, "context_en_ar": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "context": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "reference_original": {"dtype": "string", "id": null, "_type": "Value"}, "reference_flipped": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "context_en_ar", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 485205, "num_examples": 792, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 653099, "num_examples": 1100, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-dev.en_ar.en": {"num_bytes": 212247, "checksum": "628aa639aa9d41d68d67dab5535dfcb121c792eed87d69e63830d7dafdd409fc"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-dev.en_ar.ar": {"num_bytes": 132197, "checksum": "b724c2a2fe29de1295ca2a94d4be9519dde8fbf465f84ecd5966daf83f6459bc"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-dev.en_ar.ar": {"num_bytes": 132843, "checksum": "aeed18639b4e81cb31c0fcadbdf6a62899ccd1020a1a65501099e9a32b47866c"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-test.en_ar.en": {"num_bytes": 286650, "checksum": "8c5e84ce2027f8e13d4f5dffdc04b3685c0882de1dad41c5497b5b91bab4148d"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-test.en_ar.ar": {"num_bytes": 177689, "checksum": "e7ac408e1702cfacf0edda57d187704ef04286162063965bc0e80981a52ea04d"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-test.en_ar.ar": {"num_bytes": 177758, "checksum": "ab557a5c1b41b74ace7b99f542f00ca85a443e64cfc56bc2a1babf91346e5bb3"}}, "download_size": 1119384, "post_processing_size": null, "dataset_size": 1138304, "size_in_bytes": 2257688}, "sentences_en_fr": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "source_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "sentences_en_fr", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1470181, "num_examples": 1200, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 415034, "num_examples": 300, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_fr.en": {"num_bytes": 153802, "checksum": "89fa3203bd18e372c4626d629a29cc61f500f2cc3c4637db18672760ac1eac1e"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_fr.en": {"num_bytes": 170819, "checksum": "71c713c1c84cf95e8ceb724dd8644a063040fe81f618d180e7d9fb7cfd65b4d7"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_fr.en": {"num_bytes": 151881, "checksum": "1934c155973caa4c3eecfe247cd68ae21a69abb993cf013c13725cb9f5c619d6"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_fr.en": {"num_bytes": 168898, "checksum": "a3db0f530f6128c9e6106bcbde67b711e2c131dc374050aa4dd62db9c8c726d5"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_fr.fr": {"num_bytes": 183713, "checksum": "e7282177637c720dbac01503b7bac1f182a24c79135fe505358e0147ce6ff54f"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_fr.fr": {"num_bytes": 201416, "checksum": "3e06338f9e254f4d778659ae6311f7355f808f4d8fad180654f0d4bf1838770e"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_fr.fr": {"num_bytes": 179775, "checksum": "56792aa06d29f4f0dbb9262888cfc5c3bf0f6f86816506cd61a227c62307a981"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_fr.fr": {"num_bytes": 197477, "checksum": "ae4db8e627e56ae8a99fe40d4dee928c0f503076a29e14f669b695f111eab599"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_fr.en": {"num_bytes": 43813, "checksum": "b63f46536b935bb460303f780f52c36e92a70fa3c4dde6948734e4904498b3ea"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_fr.en": {"num_bytes": 48328, "checksum": "655f585f08fcff0c93915795f59fb439386877aa893793f18be8596c0eef4b25"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_fr.en": {"num_bytes": 43253, "checksum": "02efdb879aefc163e68c9dda9e1e180f4c45c68367f2356bba3ff2e1dad4fc49"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_fr.en": {"num_bytes": 47768, "checksum": "d88ece58a02082578f92fd88937b9b415dcdaf4da68f5a9dbd1413da56d12fd3"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_fr.fr": {"num_bytes": 51887, "checksum": "ff81756d358513ecf911a9a845e117be7fe96e69f3f68ec07b955c03ce2e92fe"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_fr.fr": {"num_bytes": 57567, "checksum": "aef04c9710eef1aade8c3ab0104a7f43e1278d34d1785458ee42ba14330d82d4"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_fr.fr": {"num_bytes": 50569, "checksum": "c68e25cb199a37e6b84b6c203a53373afe7ec3682e37f9b7cb9d210a16ce5795"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_fr.fr": {"num_bytes": 56249, "checksum": "723cb7c57547173448a29429ac6a501a9dad40b90192e992c6364f8acfed42a5"}}, "download_size": 1807215, "post_processing_size": null, "dataset_size": 1885215, "size_in_bytes": 3692430}, "context_en_fr": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "context": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "reference_original": {"dtype": "string", "id": null, "_type": "Value"}, "reference_flipped": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "context_en_fr", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 257973, "num_examples": 477, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 582763, "num_examples": 1099, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-dev.en_fr.en": {"num_bytes": 125551, "checksum": "7625925e8563cdf36be4677ee2966fa46240e2d3552147baab729e3405b1663d"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-dev.en_fr.fr": {"num_bytes": 63745, "checksum": "c2c120fb447ba89c40fc2f09af305270ac152d20ae85d201cc7ee3ce008a4f5f"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-dev.en_fr.fr": {"num_bytes": 63907, "checksum": "6159af09ee1e9625be824f32f25ee9833a285362e217b5bde78232f2d69f4d47"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-test.en_fr.en": {"num_bytes": 286435, "checksum": "d35990bb8f195a5c68fc4bbc6abc057f1a2eb8f44f5817ecf0dabafcd078d6db"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-test.en_fr.fr": {"num_bytes": 142660, "checksum": "b496fcace20fad9c078bce5cdd33c0ffb1c8bb186f76e799a3258f65c83f58bf"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-test.en_fr.fr": {"num_bytes": 142675, "checksum": "cf4b7032c5e742c92c3d2c5438f75a664085bd13df9aec81ea60682438e2d309"}}, "download_size": 824973, "post_processing_size": null, "dataset_size": 840736, "size_in_bytes": 1665709}, "sentences_en_de": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "source_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "sentences_en_de", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1424998, "num_examples": 1200, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 398598, "num_examples": 300, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_de.en": {"num_bytes": 152677, "checksum": "cc18ebd55cc2aef997ebc3356c535e3c38418152765de7fb20a117fa0ed4b6cf"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_de.en": {"num_bytes": 168938, "checksum": "f1da4f6b7f02d52ad036c38c567e1f502c64084689ca371d1bf97642733f8a42"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_de.en": {"num_bytes": 150983, "checksum": "4e0e1bdd071790510e45731b00651fc894216af2037992321dfd3b0172cf9cfe"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_de.en": {"num_bytes": 167237, "checksum": "2a92710472001e62b3a1ea8e22541cc6389552bdc34256b5df8f0bc8fa48630c"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_de.de": {"num_bytes": 172412, "checksum": "da3c3ad1948e017e083af36436321eded19a3903b2d16a5188bf43ffe37a07db"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_de.de": {"num_bytes": 190335, "checksum": "690b27fdda72eb4a82bec9b11ec5b124e3c480db64b2626ebbda70afbbfbd1ae"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_de.de": {"num_bytes": 171047, "checksum": "02ac2984fd5634b9a514d61043dd33eebef8552fed594b418193bc1c31f68b66"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_de.de": {"num_bytes": 188969, "checksum": "ce57e8170fad773c32fd1f021811fb97aebe781bc790843edc5b52a0f11948af"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_de.en": {"num_bytes": 42867, "checksum": "fa056fd0d9aa155a088cd0d70dca4afc698b531c4b0469469248b5c1b814037e"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_de.en": {"num_bytes": 47270, "checksum": "4a7c85b7a5350b56a9a2c7a974732971024985ac1021b5e069bdce8c87454349"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_de.en": {"num_bytes": 42359, "checksum": "980e764bed25ef5ba60a64faed0fa1d348247a31c3e815fa7c354e54806b43f5"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_de.en": {"num_bytes": 46776, "checksum": "cb4982f7133eb754fdf335eaa40c665280c553c37d2874cd8f6fbd23e8399fcb"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_de.de": {"num_bytes": 48321, "checksum": "09e2c6b557dba109411002fe2434f6b66ed0e52b51e41d357ff7066eb3ed7c1f"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_de.de": {"num_bytes": 54085, "checksum": "a2746cd6eaf4d584937a2d654e056559d7ddb258cb6abd352faf1faf1d879f9c"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_de.de": {"num_bytes": 47778, "checksum": "87b9229859f8871da63234fd9b3b7534d56aeae99de4c1b7d7094df2ea26a520"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_de.de": {"num_bytes": 53542, "checksum": "d552edd965aacc417f7ccdf56fc088da79d152825bb0e5d2ab8840a032477619"}}, "download_size": 1745596, "post_processing_size": null, "dataset_size": 1823596, "size_in_bytes": 3569192}, "context_en_de": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "context": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "reference_original": {"dtype": "string", "id": null, "_type": "Value"}, "reference_flipped": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "context_en_de", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 313197, "num_examples": 598, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 568231, "num_examples": 1100, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-dev.en_de.en": {"num_bytes": 158608, "checksum": "f1d3836a287f657f075880347ab154b14e41ea568d7e6ab7f0dc19075746504d"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-dev.en_de.de": {"num_bytes": 74226, "checksum": "141875cfeb4e0f365535c8f4ddee2198a97bcb89e8026e9a2c72795f4b5b4a8b"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-dev.en_de.de": {"num_bytes": 74381, "checksum": "56bfa7eca6d6587f9e0445f401df2971cb586e844f70fde8cb3526020cf75739"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-test.en_de.en": {"num_bytes": 286032, "checksum": "e13b237e9e09912cfe33ac492c07591ac464bc9ad856c325575a716ef92dd947"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-test.en_de.de": {"num_bytes": 135528, "checksum": "312c6a482dc7d61596db3d316bdbe48b58ee04a9f7a10868afc167e6f83adb8e"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-test.en_de.de": {"num_bytes": 135673, "checksum": "efc0543431a0e05c838cf8a409be02de97d6193f078fe6dd220197f231f5d824"}}, "download_size": 864448, "post_processing_size": null, "dataset_size": 881428, "size_in_bytes": 1745876}, "sentences_en_hi": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "source_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "sentences_en_hi", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2368393, "num_examples": 1200, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 626769, "num_examples": 300, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_hi.en": {"num_bytes": 157656, "checksum": "8c96e0791091dd447fe0b2ea997d2b17ae56eae2237dfee85f2ca4e889a6fe4c"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_hi.en": {"num_bytes": 175093, "checksum": "30163485a7e5242c42582775f381b5f31146d1b6bdf9535ec917647a22cd25b3"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_hi.en": {"num_bytes": 155678, "checksum": "9c397d9e85b05954fa930dff59adf8c260a1dfacf50a85a8004b0d41e37f9e6c"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_hi.en": {"num_bytes": 173115, "checksum": "4d80e1dc318c09b710acbcaf302b536eba0b6309f14daf24d287b4dc2b8d0c22"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_hi.hi": {"num_bytes": 405701, "checksum": "8238a1494654fbf5874a08e14e92885515bb38c68b6c70a5fc0204006a8caf98"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_hi.hi": {"num_bytes": 419492, "checksum": "9a09a9e582ab68f2c2504f9efc1bca0e3db645c2f57af1fc8ffffa465385bb97"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_hi.hi": {"num_bytes": 402747, "checksum": "bf01f8fc37bc50488bdfca0ab3b6ec9e13f6529509b3995c5218bc810efc0ccf"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_hi.hi": {"num_bytes": 416511, "checksum": "bc901aadf05dbd0876919202f3db6940bbd78056b07d25c8ef30e685f6632e70"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_hi.en": {"num_bytes": 42006, "checksum": "43de38069c8ea6b12776453379c5db890738a92a1a25f823002b8796d48a69c2"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_hi.en": {"num_bytes": 46297, "checksum": "0bd018db174d82ffa522f5c027e88cd729622a5ba176592f99479789e18b569f"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_hi.en": {"num_bytes": 41487, "checksum": "8b9c126c7cf58b2f401b04ca333e89e2dec88462e1027085fc53b730e21361aa"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_hi.en": {"num_bytes": 45778, "checksum": "61dfd4a6bb482209f4a5788794c47eaa72c591cd28100ac8b08faf34f57f7ac5"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_hi.hi": {"num_bytes": 107419, "checksum": "29d8ebbfb7c56dc71360f2da07c636a09f28a2c2c3a63167c54b6c3b3686af97"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_hi.hi": {"num_bytes": 111676, "checksum": "bed72d35c23895035fd50bafab505e9f97429082243b9e97506136b3e69a043a"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_hi.hi": {"num_bytes": 106128, "checksum": "2c8085d1e49c573e46f14d19a22bcdc13df7592cfa0ca5695386350072545097"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_hi.hi": {"num_bytes": 110378, "checksum": "30f534f65feb0935eab284d2dd52408b478f12e6359a212a36e07366b9650703"}}, "download_size": 2917162, "post_processing_size": null, "dataset_size": 2995162, "size_in_bytes": 5912324}, "context_en_hi": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "context": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "reference_original": {"dtype": "string", "id": null, "_type": "Value"}, "reference_flipped": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "context_en_hi", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 334035, "num_examples": 397, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 902379, "num_examples": 1098, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-dev.en_hi.en": {"num_bytes": 103023, "checksum": "98eb06933d8d8b85932479afff66861ee158e24d853b5447471c537f3ae1a83a"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-dev.en_hi.hi": {"num_bytes": 113730, "checksum": "ce9d6194d2d0e38ecb2623a3bd3a2851ed3c70056dc83bf5bfc0cc2502407e4c"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-dev.en_hi.hi": {"num_bytes": 113313, "checksum": "4ec7461afec354a054a51e6b996d358505c9ade8c67968ea69fc9fcbfbda2fc6"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-test.en_hi.en": {"num_bytes": 281636, "checksum": "39bc7d78e36b7399c78b456b1086706c28bd9faf3344e9356507ccd7173c1c0d"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-test.en_hi.hi": {"num_bytes": 304956, "checksum": "9084f95a73136796694f7c78e8450907627bae50635df609aa42d0e8fe2ee2f6"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-test.en_hi.hi": {"num_bytes": 304800, "checksum": "6c0ae3019e5390be29a5ad2c94cc0a7bcc5d17deeb7c045d1b830ae0b2254c4d"}}, "download_size": 1221458, "post_processing_size": null, "dataset_size": 1236414, "size_in_bytes": 2457872}, "sentences_en_it": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "source_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "sentences_en_it", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1407437, "num_examples": 1200, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 407638, "num_examples": 300, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_it.en": {"num_bytes": 155077, "checksum": "dc765706f68a17654f8a592d64532765a39d3e3f7d474cca3f55e21faa8e69e7"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_it.en": {"num_bytes": 172437, "checksum": "a3fead59868d92346052999fa03867cef8c4b87f5e9ff0e2e1850a81816fb1fc"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_it.en": {"num_bytes": 153138, "checksum": "b68f65b331e3a5858a9c2517f5e3450a370cba790ac1e63a587f5fd4d46a1bc5"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_it.en": {"num_bytes": 170505, "checksum": "0886481292eb3a84e8d3be8f33945dce722159c13aba8e4bdf2e6de0d9de9f6d"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_it.it": {"num_bytes": 167532, "checksum": "f2165981ef84ef6260f08b0f8d44a4789e575da194ff24babf2f797aade53dc1"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_it.it": {"num_bytes": 180821, "checksum": "f18a2402a9da8be93ade900ea475d91294a0bc070ab6767b53c1bf3612af1383"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_it.it": {"num_bytes": 166119, "checksum": "92f8d2f9fa5cee376705cf6ca1f7705d60371d78f5146a5df7f56d04a6d4a31d"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_it.it": {"num_bytes": 179408, "checksum": "c7bf3d7c8802a8c5453d58e7b571db88d17a3076695cab5dfb027ca2c21d479d"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_it.en": {"num_bytes": 45352, "checksum": "7567845af8fe1ff8a6dc243f7e5405eba6c7ce0a545e90ad709f524f929df26a"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_it.en": {"num_bytes": 49860, "checksum": "958b0a52c164b41b239dbef754149758a6c3da1705f716fc6b465eafee340299"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_it.en": {"num_bytes": 44774, "checksum": "5852b67d221eeb4b71117d1b6c825329cda303bb1cb86a6cb1743980d6b4a846"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_it.en": {"num_bytes": 49282, "checksum": "9b17e444c4cfff27e9675d804028e80b01079d4cbf1aae918ccd53deb45e3bdb"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_it.it": {"num_bytes": 48917, "checksum": "06547a93c10b0b7bdcbe49f552b021a0a338be1a79dd31110e5f343c7b5fabb3"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_it.it": {"num_bytes": 53038, "checksum": "e4e0759c69b5f9082e1d6c84d75cede47e34aeb8743796e5c9fc65478884b3f9"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_it.it": {"num_bytes": 48347, "checksum": "5e8e7df1b2650e6b598f2b0006b57016114bebe8004152bc2acf4091826191c2"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_it.it": {"num_bytes": 52468, "checksum": "3222e72845b31442d363fd0fbcc42cb218f74175ddb5ae1525ff73567998c57e"}}, "download_size": 1737075, "post_processing_size": null, "dataset_size": 1815075, "size_in_bytes": 3552150}, "context_en_it": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "context": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "reference_original": {"dtype": "string", "id": null, "_type": "Value"}, "reference_flipped": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "context_en_it", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 242325, "num_examples": 465, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 556295, "num_examples": 1094, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-dev.en_it.en": {"num_bytes": 124030, "checksum": "d7c5ba8603364a8ef429e1a1ba9e4225298e038d9bedc6f690e2d8ef62236f12"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-dev.en_it.it": {"num_bytes": 56753, "checksum": "186f3367b30658afac3b2415e5c90c27fa1ee6274d7cc930661437295a0faf8b"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-dev.en_it.it": {"num_bytes": 56893, "checksum": "b8688d074f088e3f7f3c4d01a5f154a755e64b3c6b7a760d8b4c228ae8f81357"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-test.en_it.en": {"num_bytes": 284529, "checksum": "374e92238d01adfa4245213374552cc84d0e7d1e52fdb11afe73e429e39da7ff"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-test.en_it.it": {"num_bytes": 130257, "checksum": "0948ad0c1840082412d37e95802a2993ce1d70fe901894380ddfbee33a5dc504"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-test.en_it.it": {"num_bytes": 130564, "checksum": "36e275804c3f17bbe81ae12b84e7a4847237444065e8e50325f68841565c6d06"}}, "download_size": 783026, "post_processing_size": null, "dataset_size": 798620, "size_in_bytes": 1581646}, "sentences_en_pt": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "source_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "sentences_en_pt", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1401886, "num_examples": 1200, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 382992, "num_examples": 300, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_pt.en": {"num_bytes": 154483, "checksum": "3ecf5e5ef76a8fc0160f0692a04f6923b86d2f618eb310fd3a92ec8113c282e0"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_pt.en": {"num_bytes": 171556, "checksum": "9f02660e29730185e59b1e5b866686beaede17e546909b312d95dd6286f8f0d4"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_pt.en": {"num_bytes": 152547, "checksum": "fe5c91a8d87cda7543f8ae63805c3bd1dbec22cb3f65b9376e403a58bc728a59"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_pt.en": {"num_bytes": 169620, "checksum": "0517152aba56acf9e76c87fd1754be834603a867fa8f16fa4022bf9f03ffd010"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_pt.pt": {"num_bytes": 164810, "checksum": "70bfc452affaac28b6f720b94cfecd1749036ffc89f28f61d34ad010f37d2ce4"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_pt.pt": {"num_bytes": 181709, "checksum": "ae0729862ee78055d1f99715f564f0504ea43965b9a71ba07f51669fb6fe49b5"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_pt.pt": {"num_bytes": 163930, "checksum": "25cb2f569ae466677ad460fd882c3c5fd99c7624bd77173d57810d1125b49d14"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_pt.pt": {"num_bytes": 180831, "checksum": "9def73c600c1423ccffb190985952ff251908dec53d87e9e46135bff9c3feccd"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_pt.en": {"num_bytes": 42143, "checksum": "a199cd4088eb811ca2241c34f70f4b48f7fb04741999d3ed31d2af5506c55b1f"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_pt.en": {"num_bytes": 46420, "checksum": "9cc9a8480a6296a8009917943dc9a9c1464dde505f56129b0264454bb016edd2"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_pt.en": {"num_bytes": 41654, "checksum": "9ccb67fb2d614f206823ba501bef9faf340b7c0e875a242027334740123cb3a5"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_pt.en": {"num_bytes": 45931, "checksum": "d1105c94c2d9c6394ceca7ba27441fdb721ce344656b052630912e3fde4b35a9"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_pt.pt": {"num_bytes": 45261, "checksum": "5658f482736aaa1394cc3f9e968ee3e7d8512b42ff06800bae5048bc477e5631"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_pt.pt": {"num_bytes": 50644, "checksum": "71c3ae150aa0e9db54d300cf4039644ffdf5efcf93abd850a1c72d0f34982c97"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_pt.pt": {"num_bytes": 44978, "checksum": "7d84703b4fc62befff9b5a770a78faefba443a3f9dc4482eb8ad2d7c03611a28"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_pt.pt": {"num_bytes": 50361, "checksum": "446323495a8b51fa6256c3613357454fc99b68aae78277c06335c887b77248c8"}}, "download_size": 1706878, "post_processing_size": null, "dataset_size": 1784878, "size_in_bytes": 3491756}, "context_en_pt": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "context": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "reference_original": {"dtype": "string", "id": null, "_type": "Value"}, "reference_flipped": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "context_en_pt", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 289485, "num_examples": 574, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 552060, "num_examples": 1089, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-dev.en_pt.en": {"num_bytes": 146711, "checksum": "5f1c9f0c3706704d59369f14e69f1c700e5e60a2e6832cd9e247f8f562f010f4"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-dev.en_pt.pt": {"num_bytes": 68477, "checksum": "0299a2d6674d60c3eaac1f31e1edcef193484f69dd757984f50c0a49279ad7db"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-dev.en_pt.pt": {"num_bytes": 68558, "checksum": "256982f3a7872007059f3a01570d7bba0cdba0f2ec03ad2cb1253d7a6b22d533"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-test.en_pt.en": {"num_bytes": 285319, "checksum": "30fb1d44fc0c969875bd50cfa7a842e989acd9eee6cc398296adf752e7f156cf"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-test.en_pt.pt": {"num_bytes": 127851, "checksum": "f9e7287e525d95a9a3c34709f7fbcc033f38fe2611cbe062b32e9290207e55cc"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-test.en_pt.pt": {"num_bytes": 127998, "checksum": "62641eab40db0e3ffe7bb4379d07a8bf70bc8d734e5991129a3c2db2c0366714"}}, "download_size": 824914, "post_processing_size": null, "dataset_size": 841545, "size_in_bytes": 1666459}, "sentences_en_ru": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "source_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "sentences_en_ru", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1865316, "num_examples": 1200, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 507044, "num_examples": 300, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_ru.en": {"num_bytes": 154612, "checksum": "8f32f3b8a980a3fd03ed4f341c75caf19530ebab8cb0c1e19bc2f198fdcefc75"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_ru.en": {"num_bytes": 171090, "checksum": "d82c7c306f05e15b1dd79cf8541f173c570af712557eb9a928a478577be1f0c7"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_ru.en": {"num_bytes": 152881, "checksum": "d09a4b86ccdcd764affca2c04e2e8b9cd0b4f1a42fc304daf96e9e43244ed474"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_ru.en": {"num_bytes": 169359, "checksum": "7b458952981a7dc08e8b53b8271d02d3c9312c86a0ff1c860eefd5af1f86091e"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_ru.ru": {"num_bytes": 281733, "checksum": "dbcaca15fca535dea94f475436589e677e583ab8faddaf9c12bee4e8de3f3bc0"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_ru.ru": {"num_bytes": 299037, "checksum": "66fe446a9a094057c8947e18905281a1152308af43b552ce9acf858fb2355eb3"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_ru.ru": {"num_bytes": 278450, "checksum": "dd7889b044c1e33cdd184600a6fdf9c3177a2be119e147cadd1c058126c6c449"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_ru.ru": {"num_bytes": 295754, "checksum": "98752bdcdc565ad070ccacb8ae2c706a249aa868d0d2a3a554f0478460b313b6"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_ru.en": {"num_bytes": 42073, "checksum": "c65c76d05b09ec7bc61b588c27dede106eb1828cc537afbda113054881a11e5f"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_ru.en": {"num_bytes": 46420, "checksum": "b72737156e8e87fbf16110cdc6501c4a58d400d856ca840e9b947e3cc92f4cd7"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_ru.en": {"num_bytes": 41610, "checksum": "792f35256090f5c5ebead7b54ca08e47b76239d9fcea21c2f52dd79a3002a6cd"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_ru.en": {"num_bytes": 45957, "checksum": "93c908fadaf27d24745b106cd87aaca079bd9db6840c9a21ebb19a4801fb18e6"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_ru.ru": {"num_bytes": 76591, "checksum": "acd4362f1def58ec171c1dc309b82134277515a6ba68c4249757f914988e01bc"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_ru.ru": {"num_bytes": 82210, "checksum": "3f3e2206c38aeb68165225d594c4aed812620998f92bc912d4783022e24ff0dd"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_ru.ru": {"num_bytes": 75482, "checksum": "7074326e2617c2ed7011a899d9b5dd5e79b647e4b9856f0f9049fb67f267f326"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_ru.ru": {"num_bytes": 81101, "checksum": "3eb919e1f17de0748cf36f67558a88fa153f1efd09a6ad8a3428bd1bf373beff"}}, "download_size": 2294360, "post_processing_size": null, "dataset_size": 2372360, "size_in_bytes": 4666720}, "context_en_ru": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "context": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "reference_original": {"dtype": "string", "id": null, "_type": "Value"}, "reference_flipped": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "context_en_ru", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 403619, "num_examples": 583, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 760899, "num_examples": 1100, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-dev.en_ru.en": {"num_bytes": 154238, "checksum": "17ea86f0a34c7c7786c8baf0be3495466dc085d6a3281da88531501d99d62ff6"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-dev.en_ru.ru": {"num_bytes": 121606, "checksum": "80ee0da1fe943375add99b2152b14fb88e2e8e39dcbb609e8c262798c13c82d8"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-dev.en_ru.ru": {"num_bytes": 121944, "checksum": "42b489c99415ce1f3352e38e4b1584aced905b6b5034f91180f0c5f9dc0cfdeb"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-test.en_ru.en": {"num_bytes": 288968, "checksum": "d6533bcaa8730253fb2d9d835a65032db5c31782def9eb593850d462839921a0"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-test.en_ru.ru": {"num_bytes": 230437, "checksum": "9dcd9eada7cffd30bbde2b77910fd748e7f31e923b2fe69460f7250f7f5590bf"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-test.en_ru.ru": {"num_bytes": 230495, "checksum": "de1fd992c05f0609cff4c000eb0e958367a1c67c3eb86baf673628aea95eb8e8"}}, "download_size": 1147688, "post_processing_size": null, "dataset_size": 1164518, "size_in_bytes": 2312206}, "sentences_en_es": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "source_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_annotated": {"dtype": "string", "id": null, "_type": "Value"}, "source_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_feminine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "source_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}, "reference_masculine_keywords": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "sentences_en_es", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1413140, "num_examples": 1200, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 410724, "num_examples": 300, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_es.en": {"num_bytes": 154652, "checksum": "477bbe983705a2f9292f82a01da8a1ba6cf905d825ce50a3cbbbff7e25d6ee6b"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_es.en": {"num_bytes": 171634, "checksum": "5720ba1c78929abf3f6ff0608a72eccf7b554cd6f7357bac617cd26a8da40faa"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_es.en": {"num_bytes": 152708, "checksum": "3e031dd23b31a12482a2c2c2eb2b8a0b2f5c913ac9e2106dc97e0029b4be1736"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_es.en": {"num_bytes": 169690, "checksum": "8474a8e1c323752c1ab420b614ce3efc6e34f41ad85e06290ec3f2bea473fc37"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-feminine-dev.en_es.es": {"num_bytes": 169136, "checksum": "66de1ca4d9c4f2544a45c2a9e8ecadfad627f3e91c9faa9c327656ea61af08e2"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-feminine-dev.en_es.es": {"num_bytes": 182804, "checksum": "14868a02c54af085c18fdad7c21cece2d7753a4f6e7b2a3f1edf2a83cafff97d"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/geneval-sentences-masculine-dev.en_es.es": {"num_bytes": 168224, "checksum": "8191f79b271370a11c170898b90e2262d87e35e30fd1d6b6b468e97801823c66"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/dev/annotated/geneval-sentences-masculine-dev.en_es.es": {"num_bytes": 181892, "checksum": "132d9d05baa792d9886a9855087eb87cc1d37283075f7505d25b7b29d647944e"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_es.en": {"num_bytes": 44846, "checksum": "f829586bb862d4cbb94f905a5be3c7d4ffd50c48d4aa0ea1c4917461f68fa335"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_es.en": {"num_bytes": 49522, "checksum": "e1b2ab0afe306c384c3103ad151f3d8fdf881a24bb88fc410ac3d43edda13a71"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_es.en": {"num_bytes": 44298, "checksum": "4d6a1bb85d6ef04d9a1c2277f923e419399f7a3da7934fef28a1437dca7e9b36"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_es.en": {"num_bytes": 48974, "checksum": "04055f09cd540ed0844d19044f82029308d83ea345211fddd46327cd8c25ddc0"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-feminine-test.en_es.es": {"num_bytes": 49653, "checksum": "2e2507bdcaecde7525070ebc034171f1e99620583661b69a8aee7094647f8e36"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-feminine-test.en_es.es": {"num_bytes": 54458, "checksum": "ac54b8bd816ee11c4e9e9f27a95e4550bafe6a5b06d2553e9dc1f21b77de4d10"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/geneval-sentences-masculine-test.en_es.es": {"num_bytes": 49284, "checksum": "7e7dd68cd922e950b2e6bdc4ba9b0634bde748328b6e316dd76753283190e066"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/sentences/test/annotated/geneval-sentences-masculine-test.en_es.es": {"num_bytes": 54089, "checksum": "9c721ae6a2af9ee20c82801339f88752e6083a99bed19a67339cb69ea8ab758b"}}, "download_size": 1745864, "post_processing_size": null, "dataset_size": 1823864, "size_in_bytes": 3569728}, "context_en_es": {"description": "The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian, \nPortuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,\nand contrastive original-invertend translations with additional preceding context.\n", "citation": "@inproceedings{currey-etal-2022-mtgeneval,\n title = \"{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation\",\n author = \"Currey, Anna and\n Nadejde, Maria and\n Pappagari, Raghavendra and\n Mayer, Mia and\n Lauly, Stanislas, and\n Niu, Xing and\n Hsu, Benjamin and\n Dinu, Georgiana\",\n booktitle = \"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing\",\n month = dec,\n year = \"2022\",\n publisher = \"Association for Computational Linguistics\",\n url = \"\"https://arxiv.org/pdf/2211.01355.pdf,\n}\n", "homepage": "https://github.com/amazon-science/machine-translation-gender-eval", "license": "Creative Commons Attribution Share Alike 3.0", "features": {"orig_id": {"dtype": "int32", "id": null, "_type": "Value"}, "context": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "reference_original": {"dtype": "string", "id": null, "_type": "Value"}, "reference_flipped": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "mt_geneval", "config_name": "context_en_es", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 273306, "num_examples": 534, "dataset_name": "mt_geneval"}, "test": {"name": "test", "num_bytes": 560162, "num_examples": 1096, "dataset_name": "mt_geneval"}}, "download_checksums": {"https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-dev.en_es.en": {"num_bytes": 139330, "checksum": "72836cd6809b7ae00de585891eb65e720d420eb23f5cbe3a2e37a860a5c85570"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-dev.en_es.es": {"num_bytes": 64265, "checksum": "4578806d442d36c7c685b33ec72f1b0845e10885b5e7c4cf4c3cd4c9ddbee512"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-dev.en_es.es": {"num_bytes": 64370, "checksum": "72e5e3e9ff5359032e52879861fce373396b8ee6c84ea86132b0d219f32bedd4"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-2to1-test.en_es.en": {"num_bytes": 285546, "checksum": "03d1ce4f5e3cdaf975728cbb1adab142d110e0974c5a4621d91d45ed50902250"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-original-test.en_es.es": {"num_bytes": 131793, "checksum": "e944595e3a548a56cddf1c98759313e9a26ce2c42262b7b550fcd43511dde66b"}, "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data/context/geneval-context-wikiprofessions-flipped-test.en_es.es": {"num_bytes": 131863, "checksum": "4d130903f29053f92c7ecfec9908306dd80fb069aeac71cdcd6087348b925d07"}}, "download_size": 817167, "post_processing_size": null, "dataset_size": 833468, "size_in_bytes": 1650635}}
|
|
|
|
mt_geneval.py
DELETED
@@ -1,236 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2022 The HuggingFace Datasets Authors and the current dataset script contributor.
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
-
"""MT-GenEval: A Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation"""
|
16 |
-
|
17 |
-
import re
|
18 |
-
from pathlib import Path
|
19 |
-
from typing import Dict
|
20 |
-
|
21 |
-
import datasets
|
22 |
-
from datasets.utils.download_manager import DownloadManager
|
23 |
-
|
24 |
-
|
25 |
-
_CITATION = """\
|
26 |
-
@inproceedings{currey-etal-2022-mtgeneval,
|
27 |
-
title = "{MT-GenEval}: {A} Counterfactual and Contextual Dataset for Evaluating Gender Accuracy in Machine Translation",
|
28 |
-
author = "Currey, Anna and
|
29 |
-
Nadejde, Maria and
|
30 |
-
Pappagari, Raghavendra and
|
31 |
-
Mayer, Mia and
|
32 |
-
Lauly, Stanislas, and
|
33 |
-
Niu, Xing and
|
34 |
-
Hsu, Benjamin and
|
35 |
-
Dinu, Georgiana",
|
36 |
-
booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing",
|
37 |
-
month = dec,
|
38 |
-
year = "2022",
|
39 |
-
publisher = "Association for Computational Linguistics",
|
40 |
-
url = ""https://arxiv.org/pdf/2211.01355.pdf,
|
41 |
-
}
|
42 |
-
"""
|
43 |
-
|
44 |
-
_DESCRIPTION = """\
|
45 |
-
The MT-GenEval benchmark evaluates gender translation accuracy on English -> {Arabic, French, German, Hindi, Italian,
|
46 |
-
Portuguese, Russian, Spanish}. The dataset contains individual sentences with annotations on the gendered target words,
|
47 |
-
and contrastive original-invertend translations with additional preceding context.
|
48 |
-
"""
|
49 |
-
|
50 |
-
_HOMEPAGE = "https://github.com/amazon-science/machine-translation-gender-eval"
|
51 |
-
|
52 |
-
_LICENSE = "Creative Commons Attribution Share Alike 3.0"
|
53 |
-
|
54 |
-
_URL = "https://raw.githubusercontent.com/amazon-science/machine-translation-gender-eval/main/data"
|
55 |
-
|
56 |
-
_CONFIGS = ["sentences", "context"]
|
57 |
-
_LANGS = ["ar", "fr", "de", "hi", "it", "pt", "ru", "es"]
|
58 |
-
|
59 |
-
rexf = re.compile('<F>(.+?)</F>')
|
60 |
-
rexm = re.compile('<M>(.+?)</M>')
|
61 |
-
|
62 |
-
class MTGenEvalConfig(datasets.BuilderConfig):
|
63 |
-
def __init__(
|
64 |
-
self,
|
65 |
-
data_type: str,
|
66 |
-
source_language: str,
|
67 |
-
target_language: str,
|
68 |
-
**kwargs
|
69 |
-
):
|
70 |
-
"""BuilderConfig for MT-GenEval.
|
71 |
-
|
72 |
-
Args:
|
73 |
-
source_language: `str`, source language for translation.
|
74 |
-
target_language: `str`, translation language.
|
75 |
-
**kwargs: keyword arguments forwarded to super.
|
76 |
-
"""
|
77 |
-
super().__init__(**kwargs)
|
78 |
-
self.data_type = data_type
|
79 |
-
self.source_language = source_language
|
80 |
-
self.target_language = target_language
|
81 |
-
|
82 |
-
|
83 |
-
class WmtVat(datasets.GeneratorBasedBuilder):
|
84 |
-
|
85 |
-
VERSION = datasets.Version("1.0.0")
|
86 |
-
|
87 |
-
BUILDER_CONFIGS = [
|
88 |
-
MTGenEvalConfig(
|
89 |
-
name=f"{cfg}_en_{lang}",
|
90 |
-
data_type=cfg,
|
91 |
-
source_language="en",
|
92 |
-
target_language=lang,
|
93 |
-
) for lang in _LANGS for cfg in _CONFIGS
|
94 |
-
]
|
95 |
-
|
96 |
-
def _info(self):
|
97 |
-
if self.config.name.startswith("sentences"):
|
98 |
-
features = datasets.Features(
|
99 |
-
{
|
100 |
-
"orig_id": datasets.Value("int32"),
|
101 |
-
"source_feminine": datasets.Value("string"),
|
102 |
-
"reference_feminine": datasets.Value("string"),
|
103 |
-
"source_masculine": datasets.Value("string"),
|
104 |
-
"reference_masculine": datasets.Value("string"),
|
105 |
-
"source_feminine_annotated": datasets.Value("string"),
|
106 |
-
"reference_feminine_annotated": datasets.Value("string"),
|
107 |
-
"source_masculine_annotated": datasets.Value("string"),
|
108 |
-
"reference_masculine_annotated": datasets.Value("string"),
|
109 |
-
"source_feminine_keywords": datasets.Value("string"),
|
110 |
-
"reference_feminine_keywords": datasets.Value("string"),
|
111 |
-
"source_masculine_keywords": datasets.Value("string"),
|
112 |
-
"reference_masculine_keywords": datasets.Value("string")
|
113 |
-
}
|
114 |
-
)
|
115 |
-
else:
|
116 |
-
features = datasets.Features(
|
117 |
-
{
|
118 |
-
"orig_id": datasets.Value("int32"),
|
119 |
-
"context": datasets.Value("string"),
|
120 |
-
"source": datasets.Value("string"),
|
121 |
-
"reference_original": datasets.Value("string"),
|
122 |
-
"reference_flipped": datasets.Value("string")
|
123 |
-
}
|
124 |
-
)
|
125 |
-
return datasets.DatasetInfo(
|
126 |
-
description=_DESCRIPTION,
|
127 |
-
features=features,
|
128 |
-
homepage=_HOMEPAGE,
|
129 |
-
license=_LICENSE,
|
130 |
-
citation=_CITATION,
|
131 |
-
)
|
132 |
-
|
133 |
-
def _split_generators(self, dl_manager: DownloadManager):
|
134 |
-
"""Returns SplitGenerators."""
|
135 |
-
base_path = f"{_URL}/{self.config.data_type}"
|
136 |
-
filepaths = {}
|
137 |
-
for split in ["dev", "test"]:
|
138 |
-
filepaths[split] = {}
|
139 |
-
if self.config.name.startswith("sentences"):
|
140 |
-
for curr_lang in [self.config.source_language, self.config.target_language]:
|
141 |
-
for gender in ["feminine", "masculine"]:
|
142 |
-
fname = f"geneval-sentences-{gender}-{split}.en_{self.config.target_language}.{curr_lang}"
|
143 |
-
langname = "source" if curr_lang == self.config.source_language else "reference"
|
144 |
-
url = f"{base_path}/{split}/{fname}"
|
145 |
-
filepaths[split][f"{langname}_{gender}"] = dl_manager.download_and_extract(url)
|
146 |
-
annotated_url = f"{base_path}/{split}/annotated/{fname}"
|
147 |
-
filepaths[split][f"{langname}_{gender}_annotated"] = dl_manager.download_and_extract(annotated_url)
|
148 |
-
else:
|
149 |
-
ftypes = ["2to1", "original", "flipped"]
|
150 |
-
for ftype in ftypes:
|
151 |
-
curr_lang = self.config.source_language if ftype == "2to1" else self.config.target_language
|
152 |
-
fname = f"geneval-context-wikiprofessions-{ftype}-{split}.en_{self.config.target_language}.{curr_lang}"
|
153 |
-
url = f"{base_path}/{fname}"
|
154 |
-
filepaths[split][ftype] = dl_manager.download_and_extract(url)
|
155 |
-
return [
|
156 |
-
datasets.SplitGenerator(
|
157 |
-
name=datasets.Split.TRAIN,
|
158 |
-
gen_kwargs={
|
159 |
-
"filepaths": filepaths["dev"],
|
160 |
-
"cfg_name": self.config.data_type
|
161 |
-
},
|
162 |
-
),
|
163 |
-
datasets.SplitGenerator(
|
164 |
-
name=datasets.Split.TEST,
|
165 |
-
gen_kwargs={
|
166 |
-
"filepaths": filepaths["test"],
|
167 |
-
"cfg_name": self.config.data_type
|
168 |
-
},
|
169 |
-
),
|
170 |
-
]
|
171 |
-
|
172 |
-
|
173 |
-
def _generate_examples(
|
174 |
-
self, filepaths: Dict[str, str], cfg_name: str
|
175 |
-
):
|
176 |
-
""" Yields examples as (key, example) tuples. """
|
177 |
-
if cfg_name == "sentences":
|
178 |
-
with open(filepaths["source_feminine"]) as f:
|
179 |
-
source_feminine = f.read().splitlines()
|
180 |
-
with open(filepaths["reference_feminine"]) as f:
|
181 |
-
reference_feminine = f.read().splitlines()
|
182 |
-
with open(filepaths["source_masculine"]) as f:
|
183 |
-
source_masculine = f.read().splitlines()
|
184 |
-
with open(filepaths["reference_masculine"]) as f:
|
185 |
-
reference_masculine = f.read().splitlines()
|
186 |
-
with open(filepaths["source_feminine_annotated"]) as f:
|
187 |
-
source_feminine_annotated = f.read().splitlines()
|
188 |
-
with open(filepaths["reference_feminine_annotated"]) as f:
|
189 |
-
reference_feminine_annotated = f.read().splitlines()
|
190 |
-
with open(filepaths["source_masculine_annotated"]) as f:
|
191 |
-
source_masculine_annotated = f.read().splitlines()
|
192 |
-
with open(filepaths["reference_masculine_annotated"]) as f:
|
193 |
-
reference_masculine_annotated = f.read().splitlines()
|
194 |
-
source_feminine_keywords = [rexf.findall(s) for s in source_feminine_annotated]
|
195 |
-
reference_feminine_keywords = [rexf.findall(s) for s in reference_feminine_annotated]
|
196 |
-
source_masculine_keywords = [rexm.findall(s) for s in source_masculine_annotated]
|
197 |
-
reference_masculine_keywords = [rexm.findall(s) for s in reference_masculine_annotated]
|
198 |
-
for i, (sf, rf, sm, rm, sfa, rfa, sma, rma, sfk, rfk, smk, rmk) in enumerate(
|
199 |
-
zip(
|
200 |
-
source_feminine, reference_feminine, source_masculine, reference_masculine,
|
201 |
-
source_feminine_annotated, reference_feminine_annotated, source_masculine_annotated, reference_masculine_annotated,
|
202 |
-
source_feminine_keywords, reference_feminine_keywords, source_masculine_keywords, reference_masculine_keywords
|
203 |
-
)
|
204 |
-
):
|
205 |
-
yield i, {
|
206 |
-
"orig_id": i,
|
207 |
-
"source_feminine": sf,
|
208 |
-
"reference_feminine": rf,
|
209 |
-
"source_masculine": sm,
|
210 |
-
"reference_masculine": rm,
|
211 |
-
"source_feminine_annotated": sfa,
|
212 |
-
"reference_feminine_annotated": rfa,
|
213 |
-
"source_masculine_annotated": sma,
|
214 |
-
"reference_masculine_annotated": rma,
|
215 |
-
"source_feminine_keywords": ";".join(sfk),
|
216 |
-
"reference_feminine_keywords": ";".join(rfk),
|
217 |
-
"source_masculine_keywords": ";".join(smk),
|
218 |
-
"reference_masculine_keywords": ";".join(rmk)
|
219 |
-
}
|
220 |
-
else:
|
221 |
-
with open(filepaths["2to1"]) as f:
|
222 |
-
context_and_source = f.read().splitlines()
|
223 |
-
with open(filepaths["original"]) as f:
|
224 |
-
orig_ref = f.read().splitlines()
|
225 |
-
with open(filepaths["flipped"]) as f:
|
226 |
-
flipped_ref = f.read().splitlines()
|
227 |
-
context = [s.split("<sep>")[0].strip() for s in context_and_source]
|
228 |
-
source = [s.split("<sep>")[1].strip() for s in context_and_source]
|
229 |
-
for i, (c, s, oref, fref) in enumerate(zip(context, source, orig_ref, flipped_ref)):
|
230 |
-
yield i, {
|
231 |
-
"orig_id": i,
|
232 |
-
"context": c,
|
233 |
-
"source": s,
|
234 |
-
"reference_original": oref,
|
235 |
-
"reference_flipped": fref
|
236 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sentences_en_ar/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfc5ac20acb9d40e77d9d795a7b5729e653c5e17db52f478c3315d7305a8fc39
|
3 |
+
size 309482
|
sentences_en_ar/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1bbbc8a65904ffb39272de1523b220f41090c35be00151aa593bddabe162332c
|
3 |
+
size 1103801
|
sentences_en_de/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7131923f99af6172e3cb6682255a7a3be9f6d4c4aeeb8775fa84e30e8793683e
|
3 |
+
size 295897
|
sentences_en_de/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b97e8831d1e3f0f47ae82e3b71ab0f059c818879845573a9b0433809eba8b86
|
3 |
+
size 1017175
|
sentences_en_es/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c54e1eccc7fc68244623e9e3d4856042e663de37f7f7c190b552b19c8d7c9a9e
|
3 |
+
size 306596
|
sentences_en_es/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5338d96eaffbcc3d0801333eb0187e74d7592544b64207c2d2c7fa7a5e100973
|
3 |
+
size 1005051
|
sentences_en_fr/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e95d5964e43a9f8bee3e0d7124d84532198c935ca62dceb1a528eed5f1088bbb
|
3 |
+
size 302043
|
sentences_en_fr/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e2173d5e09f60722c994422ecf2fe04ab234458bc5d290c19b2f12e15d2840e1
|
3 |
+
size 1035728
|
sentences_en_hi/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f82db3ca04990e73d88b10c31d58fbe25cddb4e19eb2d299deb427ba260333a9
|
3 |
+
size 341135
|
sentences_en_hi/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0a1293ef5bd2447311c0f46fc84c77fe877031ff82b3a17ff9938a79df83bee4
|
3 |
+
size 1271019
|
sentences_en_it/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b7cf9c80de66ddb6c68076edc99c67e393fc5b98abb76df7d636f87f89047a8d
|
3 |
+
size 302450
|
sentences_en_it/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:36585dd4fd8a3649263dfbf3d1d495c7077c84061f332e98c48dcfffb1a493af
|
3 |
+
size 1022898
|
sentences_en_pt/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:70cc44ae6a0cf83ede225cb40dbb01b6a49f44f8b6043024b5cd71a93b0127e4
|
3 |
+
size 283073
|
sentences_en_pt/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a297a8d782527199ec9a68bac2f01944f13caf6ca990849334672b48d4e642e2
|
3 |
+
size 1006065
|
sentences_en_ru/mt_geneval-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e5d228b224b7433752115aced926525559e8642664e016074b1513ee0e94acad
|
3 |
+
size 337570
|
sentences_en_ru/mt_geneval-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf1d4d36d270359274312dc40b6e4f3b709bd769aee380eb61ecd711b04b935a
|
3 |
+
size 1182440
|