Datasets:
Split predictions/metrics into separate configs
Browse files
README.md
CHANGED
|
@@ -33,7 +33,9 @@ configs:
|
|
| 33 |
data_files:
|
| 34 |
- split: outputs
|
| 35 |
path: predictions/outputs-*
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
path: predictions/metrics-*
|
| 38 |
- config_name: glossary
|
| 39 |
data_files:
|
|
@@ -47,13 +49,13 @@ A parallel scientific machine-translation corpus for **English + six African lan
|
|
| 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/
|
| 51 |
- **License:** Apache-2.0.
|
| 52 |
- **Paper:** [AfriScience-MT: Towards Decolonizing Science in Africa through Text Translation](https://arxiv.org/abs/2605.29741) (arXiv:2605.29741).
|
| 53 |
|
| 54 |
## Configurations
|
| 55 |
|
| 56 |
-
This repo exposes
|
| 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.
|
|
@@ -74,11 +76,9 @@ Fields per row:
|
|
| 74 |
Splits: `train` (5,792 sentences / 177 papers) · `dev` (843 / 25) · `test` (970 / 28).
|
| 75 |
|
| 76 |
### `predictions`
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
Two splits:
|
| 80 |
|
| 81 |
-
|
| 82 |
|
| 83 |
| field | type | description |
|
| 84 |
|---|---|---|
|
|
@@ -98,6 +98,20 @@ Two splits:
|
|
| 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 |
|
|
@@ -109,17 +123,6 @@ The co-developed bilingual scientific glossaries built during translation, one r
|
|
| 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
|
|
@@ -132,10 +135,13 @@ corpus["train"][0]
|
|
| 132 |
# 'lang_pair': 'eng-amh', 'source_lang': 'eng', 'target_lang': 'amh',
|
| 133 |
# 'source': '...', 'target': '...'}
|
| 134 |
|
| 135 |
-
#
|
| 136 |
preds = load_dataset("dsfsi/afriscience_mt", "predictions")
|
| 137 |
preds["outputs"][0] # one model output per row
|
| 138 |
-
|
|
|
|
|
|
|
|
|
|
| 139 |
|
| 140 |
# Bilingual scientific glossaries.
|
| 141 |
gloss = load_dataset("dsfsi/afriscience_mt", "glossary")
|
|
@@ -149,7 +155,7 @@ Common joins:
|
|
| 149 |
import pandas as pd
|
| 150 |
test_corpus = corpus["test"].to_pandas()
|
| 151 |
outputs = preds["outputs"].to_pandas()
|
| 152 |
-
|
| 153 |
|
| 154 |
# Predictions paired with the source/reference from the corpus test split.
|
| 155 |
joined = outputs.merge(
|
|
|
|
| 33 |
data_files:
|
| 34 |
- split: outputs
|
| 35 |
path: predictions/outputs-*
|
| 36 |
+
- config_name: metrics
|
| 37 |
+
data_files:
|
| 38 |
+
- split: all
|
| 39 |
path: predictions/metrics-*
|
| 40 |
- config_name: glossary
|
| 41 |
data_files:
|
|
|
|
| 49 |
|
| 50 |
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.
|
| 51 |
|
| 52 |
+
- **Source code:** the `afriscience-mt` CLI at https://github.com/dsfsi/afriscience_mt.
|
| 53 |
- **License:** Apache-2.0.
|
| 54 |
- **Paper:** [AfriScience-MT: Towards Decolonizing Science in Africa through Text Translation](https://arxiv.org/abs/2605.29741) (arXiv:2605.29741).
|
| 55 |
|
| 56 |
## Configurations
|
| 57 |
|
| 58 |
+
This repo exposes four configurations: `corpus` (default), `predictions`, `metrics`, and `glossary`.
|
| 59 |
|
| 60 |
### `corpus` (default)
|
| 61 |
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.
|
|
|
|
| 76 |
Splits: `train` (5,792 sentences / 177 papers) · `dev` (843 / 25) · `test` (970 / 28).
|
| 77 |
|
| 78 |
### `predictions`
|
| 79 |
+
Per-sentence model outputs 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. 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`).
|
|
|
|
|
|
|
| 80 |
|
| 81 |
+
Single split: `outputs` (1,982,558 rows).
|
| 82 |
|
| 83 |
| field | type | description |
|
| 84 |
|---|---|---|
|
|
|
|
| 98 |
| `prediction` | string | model output |
|
| 99 |
| `is_ablation` | bool | excluded from the main results when true |
|
| 100 |
|
| 101 |
+
### `metrics`
|
| 102 |
+
Per-run aggregated metrics: one row per (model, configuration, language pair). This is the canonical source for `experiments/summary.csv`, which the paper builders read.
|
| 103 |
+
|
| 104 |
+
| field | type | description |
|
| 105 |
+
|---|---|---|
|
| 106 |
+
| `model_short` / `experiment_type` / `prompt_strategy` / `lora_rank` / `temp_setting` / `dataset` / `lang_pair` / `split` / `is_ablation` | — | same join keys as `predictions` |
|
| 107 |
+
| `bleu` | float | BLEU |
|
| 108 |
+
| `chrf` | float | chrF |
|
| 109 |
+
| `ssa_comet` | float | SSA-COMET (the paper's primary metric) |
|
| 110 |
+
| `num_samples` | int | sentences scored |
|
| 111 |
+
| `val_bleu` / `val_chrf` / `val_ssa_comet` | float | validation-split metrics where available |
|
| 112 |
+
|
| 113 |
+
Single split: `all`.
|
| 114 |
+
|
| 115 |
### `glossary`
|
| 116 |
The co-developed bilingual scientific glossaries built during translation, one row per (English term, target-language translation) pair, stacked across all six target languages.
|
| 117 |
|
|
|
|
| 123 |
|
| 124 |
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.
|
| 125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
## Loading
|
| 127 |
|
| 128 |
```python
|
|
|
|
| 135 |
# 'lang_pair': 'eng-amh', 'source_lang': 'eng', 'target_lang': 'amh',
|
| 136 |
# 'source': '...', 'target': '...'}
|
| 137 |
|
| 138 |
+
# Per-sentence model outputs.
|
| 139 |
preds = load_dataset("dsfsi/afriscience_mt", "predictions")
|
| 140 |
preds["outputs"][0] # one model output per row
|
| 141 |
+
|
| 142 |
+
# Per-run aggregated metrics.
|
| 143 |
+
metrics = load_dataset("dsfsi/afriscience_mt", "metrics")
|
| 144 |
+
metrics["all"][0] # one (model, config, lang_pair) row
|
| 145 |
|
| 146 |
# Bilingual scientific glossaries.
|
| 147 |
gloss = load_dataset("dsfsi/afriscience_mt", "glossary")
|
|
|
|
| 155 |
import pandas as pd
|
| 156 |
test_corpus = corpus["test"].to_pandas()
|
| 157 |
outputs = preds["outputs"].to_pandas()
|
| 158 |
+
metrics_df = metrics["all"].to_pandas()
|
| 159 |
|
| 160 |
# Predictions paired with the source/reference from the corpus test split.
|
| 161 |
joined = outputs.merge(
|