Datasets:
Split predictions/metrics into separate configs
Browse files32 unmodified lines333435363738397 unmodified lines4748495051525354555657585914 unmodified lines747576777879808182838413 unmodified lines98991001011021035 unmodified lines1091101111121131141151161171181191201211221231241256 unmodified lines1321331341351361371381391401417 unmodified lines14915015115215315415532 unmodified linesdata_files:- split: outputspath: predictions/outputs-*- split: metricspath: predictions/metrics-*- config_name: glossarydata_files:7 unmodified linesAlongside 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.- **Source code:** the `afriscience-mt` CLI at https://github.com/dsfsi/AfriScience-MT.- **License:** Apache-2.0.- **Paper:** [AfriScience-MT: Towards Decolonizing Science in Africa through Text Translation](https://arxiv.org/abs/2605.29741) (arXiv:2605.29741).## ConfigurationsThis repo exposes two configurations.### `corpus` (default)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.14 unmodified linesSplits: `train` (5,792 sentences / 177 papers) · `dev` (843 / 25) · `test` (970 / 28).### `predictions`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.Two splits:- **`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`).| field | type | description ||---|---|---|13 unmodified lines| `prediction` | string | model output || `is_ablation` | bool | excluded from the main results when true |### `glossary`The co-developed bilingual scientific glossaries built during translation, one row per (English term, target-language translation) pair, stacked across all six target languages.5 unmodified linesSingle 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.- **`metrics`** — one row per (model, configuration, language pair); the aggregated table that drives every paper figure.| field | type | description ||---|---|---|| `model_short` / `experiment_type` / `prompt_strategy` / `lora_rank` / `temp_setting` / `dataset` / `lang_pair` / `split` / `is_ablation` | — | same join keys as `outputs` || `bleu` | float | BLEU || `chrf` | float | chrF || `ssa_comet` | float | SSA-COMET (the paper's primary metric) || `num_samples` | int | sentences scored || `val_bleu` / `val_chrf` / `val_ssa_comet` | float | validation-split metrics where available |## Loading```python6 unmodified lines# 'lang_pair': 'eng-amh', 'source_lang': 'eng', 'target_lang': 'amh',# 'source': '...', 'target': '...'}# Predictions + metrics.preds = load_dataset("dsfsi/afriscience_mt", "predictions")preds["outputs"][0] # one model output per rowpreds["metrics"][0] # one (model, config, lang_pair) row# Bilingual scientific glossaries.gloss = load_dataset("dsfsi/afriscience_mt", "glossary")7 unmodified linesimport pandas as pdtest_corpus = corpus["test"].to_pandas()outputs = preds["outputs"].to_pandas()metrics = preds["metrics"].to_pandas()# Predictions paired with the source/reference from the corpus test split.joined = outputs.merge(32 unmodified lines3334353637383940417 unmodified lines4950515253545556575859606114 unmodified lines76777879808182838413 unmodified lines98991001011021031041051061071081091101111121131141151161175 unmodified lines1231241251261271286 unmodified lines1351361371381391401411421431441451461477 unmodified lines15515615715815916016132 unmodified linesdata_files:- split: outputspath: predictions/outputs-*- config_name: metricsdata_files:- split: allpath: predictions/metrics-*- config_name: glossarydata_files:7 unmodified linesAlongside 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.- **Source code:** the `afriscience-mt` CLI at https://github.com/dsfsi/afriscience_mt.- **License:** Apache-2.0.- **Paper:** [AfriScience-MT: Towards Decolonizing Science in Africa through Text Translation](https://arxiv.org/abs/2605.29741) (arXiv:2605.29741).## ConfigurationsThis repo exposes four configurations: `corpus` (default), `predictions`, `metrics`, and `glossary`.### `corpus` (default)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.14 unmodified linesSplits: `train` (5,792 sentences / 177 papers) · `dev` (843 / 25) · `test` (970 / 28).### `predictions`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`).Single split: `outputs` (1,982,558 rows).| field | type | description ||---|---|---|13 unmodified lines| `prediction` | string | model output || `is_ablation` | bool | excluded from the main results when true |### `metrics`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.| field | type | description ||---|---|---|| `model_short` / `experiment_type` / `prompt_strategy` / `lora_rank` / `temp_setting` / `dataset` / `lang_pair` / `split` / `is_ablation` | — | same join keys as `predictions` || `bleu` | float | BLEU || `chrf` | float | chrF || `ssa_comet` | float | SSA-COMET (the paper's primary metric) || `num_samples` | int | sentences scored || `val_bleu` / `val_chrf` / `val_ssa_comet` | float | validation-split metrics where available |Single split: `all`.### `glossary`The co-developed bilingual scientific glossaries built during translation, one row per (English term, target-language translation) pair, stacked across all six target languages.5 unmodified linesSingle 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.## Loading```python6 unmodified lines# 'lang_pair': 'eng-amh', 'source_lang': 'eng', 'target_lang': 'amh',# 'source': '...', 'target': '...'}# Per-sentence model outputs.preds = load_dataset("dsfsi/afriscience_mt", "predictions")preds["outputs"][0] # one model output per row# Per-run aggregated metrics.metrics = load_dataset("dsfsi/afriscience_mt", "metrics")metrics["all"][0] # one (model, config, lang_pair) row# Bilingual scientific glossaries.gloss = load_dataset("dsfsi/afriscience_mt", "glossary")7 unmodified linesimport pandas as pdtest_corpus = corpus["test"].to_pandas()outputs = preds["outputs"].to_pandas()metrics_df = metrics["all"].to_pandas()# Predictions paired with the source/reference from the corpus test split.joined = outputs.merge(
README.md+27-21