abumafrim commited on
Commit
8e6c5b9
·
verified ·
1 Parent(s): afca953

Initial upload: corpus (train/dev/test) + glossary + dataset card

Browse files
README.md ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - eng
5
+ - amh
6
+ - hau
7
+ - lug
8
+ - nso
9
+ - yor
10
+ - zul
11
+ task_categories:
12
+ - translation
13
+ tags:
14
+ - machine-translation
15
+ - african-languages
16
+ - scientific-translation
17
+ - low-resource
18
+ - parallel-corpus
19
+ pretty_name: AfriScience-MT
20
+ size_categories:
21
+ - 1K<n<10K
22
+ configs:
23
+ - config_name: corpus
24
+ default: true
25
+ data_files:
26
+ - split: train
27
+ path: corpus/train-*
28
+ - split: dev
29
+ path: corpus/dev-*
30
+ - split: test
31
+ path: corpus/test-*
32
+ - config_name: predictions
33
+ data_files:
34
+ - split: outputs
35
+ path: predictions/outputs-*
36
+ - split: metrics
37
+ path: predictions/metrics-*
38
+ - config_name: glossary
39
+ data_files:
40
+ - split: terms
41
+ path: glossary/terms-*
42
+ ---
43
+
44
+ # AfriScience-MT
45
+
46
+ A parallel scientific machine-translation corpus for **English + six African languages** (Amharic, Hausa, Luganda, Northern Sotho, Yorùbá, isiZulu), co-developed with expert science communicators and professional translators across **11 scientific domains** (Agriculture, Biochemistry, Biology, Chemistry, Computer Science, Engineering, Geography, Health, Indigenous Knowledge, Sociology, Statistics).
47
+
48
+ Alongside the corpus we release **every model prediction and per-run metric** behind the accompanying paper, so the benchmark can be reproduced and extended without re-running any experiments.
49
+
50
+ - **Source code:** the `afriscience-mt` CLI at https://github.com/dsfsi/AfriScience-MT.
51
+ - **License:** Apache-2.0.
52
+ - **Paper:** to appear (citation forthcoming).
53
+
54
+ ## Configurations
55
+
56
+ This repo exposes two configurations.
57
+
58
+ ### `corpus` (default)
59
+ The parallel scientific corpus. 230 papers, 7,605 English source sentences, each translated into the six African target languages and aligned at both the sentence and document level. Splits are made at the *document* level within each domain so every split contains documents from every domain and no within-paper sentences leak across splits.
60
+
61
+ Fields per row:
62
+
63
+ | field | type | description |
64
+ |---|---|---|
65
+ | `paper_id` | string | source paper identifier |
66
+ | `domain` | string | one of 11 scientific domains |
67
+ | `sentence_id` | int | position within the paper (0-indexed) |
68
+ | `lang_pair` | string | e.g. `eng-amh` |
69
+ | `source_lang` | string | ISO 639-3 |
70
+ | `target_lang` | string | ISO 639-3 |
71
+ | `source` | string | source sentence (English) |
72
+ | `target` | string | target translation (African language) |
73
+
74
+ Splits: `train` (5,792 sentences / 177 papers) · `dev` (843 / 25) · `test` (970 / 28).
75
+
76
+ ### `predictions`
77
+ Model outputs and per-run metrics for every system evaluated in the paper: four seq2seq models (M2M100-418M/1.2B, NLLB-600M/1.3B), seven open-weight LLMs (Llama3-8B, Gemma2-9B-IT, AfriqueLlama-8B, AfriqueQwen-8B, Tiny-Aya-Earth, Tiny-Aya-Global, TranslateGemma-12B), and four closed models (GPT-4o, Gemini-1.5-Flash, GPT-5.4, Gemini-3.1-Flash-Lite), across zero-shot, in-context-learning, and document-level configurations.
78
+
79
+ Two splits:
80
+
81
+ - **`outputs`** — one row per (model, configuration, language pair, sentence). Carries enough metadata to join back to the test split of the `corpus` config via (`lang_pair`, `split`, `sentence_id`).
82
+
83
+ | field | type | description |
84
+ |---|---|---|
85
+ | `model_short` | string | e.g. `nllb_200_1_3b`, `gpt54`, `gemini_31_flash_lite` |
86
+ | `experiment_type` | string | `seq2seq_zero_shot`, `seq2seq_finetune`, `llm_zero_shot`, `llm_icl`, `llm_doc`, `lora_finetune`, … |
87
+ | `prompt_strategy` | string | e.g. `template5_10shot`, `doc_0shot`, `semantic_10shot` (null for fine-tuned) |
88
+ | `lora_rank` | int | LoRA rank, or null |
89
+ | `temp_setting` | string | `t0` (default) or `t06` (temperature ablation) |
90
+ | `dataset` | string | `dcs` (AfriScience-MT), `mafand`, `mafand_pp` |
91
+ | `lang_pair` | string | e.g. `eng-amh`, `amh-eng` |
92
+ | `source_lang` | string | ISO 639-3 |
93
+ | `target_lang` | string | ISO 639-3 |
94
+ | `split` | string | `test` (default) |
95
+ | `sentence_id` | int | position within the test set; joins to `corpus[test]` |
96
+ | `source` | string | source sentence |
97
+ | `reference` | string | reference translation |
98
+ | `prediction` | string | model output |
99
+ | `is_ablation` | bool | excluded from the main results when true |
100
+
101
+ ### `glossary`
102
+ The co-developed bilingual scientific glossaries built during translation, one row per (English term, target-language translation) pair, stacked across all six target languages.
103
+
104
+ | field | type | description |
105
+ |---|---|---|
106
+ | `target_lang` | string | ISO 639-3 of the African target language |
107
+ | `eng` | string | English scientific term |
108
+ | `target` | string | translation in the target language |
109
+
110
+ Single split: `terms`. Counts per language: Amharic 333 · Hausa 130 · Luganda 181 · Northern Sotho 263 · Yorùbá 587 · isiZulu 385. The largest glossaries (Yorùbá, isiZulu) correspond to the languages for which standardised scientific terminology was scarcest.
111
+
112
+ - **`metrics`** — one row per (model, configuration, language pair); the aggregated table that drives every paper figure.
113
+
114
+ | field | type | description |
115
+ |---|---|---|
116
+ | `model_short` / `experiment_type` / `prompt_strategy` / `lora_rank` / `temp_setting` / `dataset` / `lang_pair` / `split` / `is_ablation` | — | same join keys as `outputs` |
117
+ | `bleu` | float | BLEU |
118
+ | `chrf` | float | chrF |
119
+ | `ssa_comet` | float | SSA-COMET (the paper's primary metric) |
120
+ | `num_samples` | int | sentences scored |
121
+ | `val_bleu` / `val_chrf` / `val_ssa_comet` | float | validation-split metrics where available |
122
+
123
+ ## Loading
124
+
125
+ ```python
126
+ from datasets import load_dataset
127
+
128
+ # Parallel corpus, default config.
129
+ corpus = load_dataset("dsfsi/afriscience_mt", "corpus")
130
+ corpus["train"][0]
131
+ # {'paper_id': '...', 'domain': 'Health', 'sentence_id': 0,
132
+ # 'lang_pair': 'eng-amh', 'source_lang': 'eng', 'target_lang': 'amh',
133
+ # 'source': '...', 'target': '...'}
134
+
135
+ # Predictions + metrics.
136
+ preds = load_dataset("dsfsi/afriscience_mt", "predictions")
137
+ preds["outputs"][0] # one model output per row
138
+ preds["metrics"][0] # one (model, config, lang_pair) row
139
+
140
+ # Bilingual scientific glossaries.
141
+ gloss = load_dataset("dsfsi/afriscience_mt", "glossary")
142
+ gloss["terms"][0]
143
+ # {'target_lang': 'yor', 'eng': '...', 'target': '...'}
144
+ ```
145
+
146
+ Common joins:
147
+
148
+ ```python
149
+ import pandas as pd
150
+ test_corpus = corpus["test"].to_pandas()
151
+ outputs = preds["outputs"].to_pandas()
152
+ metrics = preds["metrics"].to_pandas()
153
+
154
+ # Predictions paired with the source/reference from the corpus test split.
155
+ joined = outputs.merge(
156
+ test_corpus[["lang_pair", "sentence_id", "domain", "paper_id"]],
157
+ on=["lang_pair", "sentence_id"], how="left",
158
+ )
159
+
160
+ # All NLLB-1.3B fine-tuned scores on the AfriScience-MT (dcs) test split.
161
+ metrics.query(
162
+ "model_short == 'nllb_200_1_3b' and "
163
+ "experiment_type == 'seq2seq_finetune' and "
164
+ "dataset == 'dcs' and not is_ablation"
165
+ )
166
+ ```
167
+
168
+ ## Languages
169
+
170
+ | code | language | family | region |
171
+ |---|---|---|---|
172
+ | `eng` | English | Germanic | — |
173
+ | `amh` | Amharic | Afro-Asiatic | East Africa |
174
+ | `hau` | Hausa | Afro-Asiatic | West Africa |
175
+ | `lug` | Luganda | Niger-Congo | East Africa |
176
+ | `nso` | Northern Sotho (Pedi) | Niger-Congo | Southern Africa |
177
+ | `yor` | Yorùbá | Niger-Congo | West Africa |
178
+ | `zul` | isiZulu | Niger-Congo | Southern Africa |
179
+
180
+ Collectively, these six target languages are spoken by over 200 million people across 15 countries.
181
+
182
+ ## Construction
183
+
184
+ The corpus follows a two-stage process: a domain-expert science communicator first produces a 250–350-word lay summary of each paper (preserving key contributions and scientific terminology), and a professional translator with per-language lead-translator review then renders the summary, abstract, terminology, and definitions into each target language. Bilingual scientific glossaries are co-developed during translation to fill gaps where no standardised terminology existed.
185
+
186
+ Full preprocessing details (untranslated-sentence removal, single-word filtering, sentence-level deduplication, document-level preservation, glossary normalisation) are documented in the paper appendix.
187
+
188
+ ## Citation
189
+
190
+ ```bibtex
191
+ @misc{afriscience-mt-2026,
192
+ title = {AfriScience-MT: Towards Decolonizing Science in Africa through Text Translation},
193
+ author = {Idris Abdulmumin and Tajuddeen Gwadabe and Shamsuddeen Hassan Muhammad and David Ifeoluwa Adelani and Nomonde Khalo and Ibrahim Said Ahmad and Abiodun Modupe and Anina Mumm and Sibusiso Biyela and Michelle Rabie and Johanna Havemann and Marek Rei and Jade Abbott and Vukosi Marivate},
194
+ year = {2026}
195
+ }
196
+ ```
197
+
198
+ ## License
199
+
200
+ Released under the Apache License 2.0. See [`LICENSE`](LICENSE).
corpus/dev-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:768f329941f4f70ec98a29e2867ee3fcc3bf72a6d9b8afe6df195bd63f3e5305
3
+ size 523944
corpus/test-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55101ce06018e6915a50f93f9263d3fcff0e80dd298ac8c218d6c63301ce13e8
3
+ size 623942
corpus/train-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:980510b101f965a1f305f6047a8b8fa4956d7953f2dfda98e19d3dec32ebadac
3
+ size 3489055
glossary/terms-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee173a65a1605df74c1a5260f5308189d3637eaf06c197f658174714f0219f70
3
+ size 49941