CoolFace
Datasetpublic

dsfsi/govza-sa-cabinet-statements-sentence-aligned

Gov-ZA Multilingual Cabinet Statements (Sentence-Aligned) Dataset Description This dataset contains sentence-aligned parallel text from South African government cabinet statements in 11 official languages. The data is sourced from the Government Communication and Information System (GCIS) and scraped from www.gov.za/cabinet-statements. Key Features: πŸ“Š 55 language pair combinations covering 11 South African languages πŸ”— Sentence-level alignment using LASER… See the full description on the dataset page: https://huggingface.co/datasets/dsfsi/govza-sa-cabinet-statements-sentence-aligned.

sourceHugging Facecc-by-4.0updated 9mo agoView on Hugging Face
1likes6.3kdownloads
Dataset Card

Gov-ZA Multilingual Cabinet Statements (Sentence-Aligned)

Dataset Description

This dataset contains sentence-aligned parallel text from South African government cabinet statements in 11 official languages. The data is sourced from the Government Communication and Information System (GCIS) and scraped from www.gov.za/cabinet-statements.

Key Features:

  • β€”πŸ“Š 55 language pair combinations covering 11 South African languages
  • β€”πŸ”— Sentence-level alignment using LASER embeddings
  • β€”πŸ“ˆ Alignment confidence scores (cosine similarity)
  • β€”πŸŽ― Train/Test/Eval splits for each language pair
  • β€”πŸŒ Low-resource African languages represented

Supported Languages

LanguageCodeLanguageCode
AfrikaansafrSepedi (Northern Sotho)nso
EnglishengSetswanatsn
isiNdebelenblSiswatissw
isiXhosaxhoTshivendaven
isiZuluzulXitstongatso
Sesothosot

Dataset Structure

Data Instances

Each instance contains a pair of aligned sentences with an alignment confidence score:

json
{
  "afr": "Die Kabinet het sy kommer uitgespreek oor die onlangse arbeidsonrus...",
  "eng": "Cabinet expressed concern at recent labour unrest at Lonmin's Marikana Mine...",
  "score": 0.8649104,
  "__index_level_0__": 2
}

Data Fields

  • β€”`{lang1}` (string): Source language sentence
  • β€”`{lang2}` (string): Target language sentence (aligned translation)
  • β€”`score` (float): Alignment confidence score (0.0 to 1.0) based on cosine similarity of LASER embeddings
  • β€”`__index_level_0__` (int): Original index in the full dataset

Data Splits

Each language pair configuration has three splits:

SplitPurposeSize
trainTraining~70%
testTesting~15%
evalEvaluation~15%

Dataset Creation

Source Data

The dataset is created from South African government cabinet statements published on the official government website. These statements are professionally translated into all 11 official languages, making them a high-quality source for parallel text.

Sentence Alignment Process

  1. 1.Scraping: Cabinet statements scraped from gov.za
  2. 2.Tokenization: Sentence tokenization using NLTK
  3. 3.Preprocessing: Language-specific text cleaning (URLs, titles, special characters)
  4. 4.Embedding: Sentence embeddings generated using LASER (Language-Agnostic SEntence Representations)
  5. 5.Alignment: Sentences aligned using cosine similarity of embeddings
  6. 6.Filtering: Alignment pairs filtered by confidence score threshold (>= 0.65)

Usage

Loading the Dataset

python
from datasets import load_dataset

# Load specific language pair
dataset = load_dataset("dsfsi/govza-sa-cabinet-statements-sentence-aligned", "afr-eng")

# Access splits
train_data = dataset["train"]
test_data = dataset["test"]
eval_data = dataset["eval"]

# Iterate through examples
for example in train_data:
    source = example["afr"]
    target = example["eng"]
    confidence = example["score"]
    print(f"Score: {confidence:.2f}")
    print(f"AFR: {source}")
    print(f"ENG: {target}\n")

Available Language Pair Configurations

The dataset includes the following configurations (language pairs):

<details> <summary>Click to see all 55 language pair combinations</summary>

Afrikaans pairs: afr-eng, afr-nbl, afr-nso, afr-sot, afr-ssw, afr-tsn, afr-tso, afr-ven, afr-xho, afr-zul

English pairs: eng-nbl, eng-nso, eng-sot, eng-ssw, eng-tsn, eng-tso, eng-ven, eng-xho, eng-zul

isiNdebele pairs: nbl-nso, nbl-sot, nbl-ssw, nbl-tsn, nbl-tso, nbl-ven, nbl-xho, nbl-zul

Sepedi pairs: nso-sot, nso-ssw, nso-tsn, nso-tso, nso-ven, nso-xho, nso-zul

Sesotho pairs: sot-ssw, sot-tsn, sot-tso, sot-ven, sot-xho, sot-zul

Siswati pairs: ssw-tsn, ssw-tso, ssw-ven, ssw-xho, ssw-zul

Setswana pairs: tsn-tso, tsn-ven, tsn-xho, tsn-zul

Xitstonga pairs: tso-ven, tso-xho, tso-zul

Tshivenda pairs: ven-xho, ven-zul

isiXhosa-isiZulu: xho-zul

</details>

Example: Training a Translation Model

python
from datasets import load_dataset
from transformers import MarianMTModel, MarianTokenizer

# Load data
dataset = load_dataset("dsfsi/govza-sa-cabinet-statements-sentence-aligned", "afr-eng", split="train")

# Your training code here
# ...

Alignment Quality

Alignment pairs are filtered by cosine similarity score >= 0.65. The distribution of alignment scores varies by language pair:

  • β€”High-resource pairs (e.g., eng-afr): Typically higher alignment scores (0.75-0.95)
  • β€”Low-resource pairs (e.g., ven-nbl): More varied scores (0.65-0.85)

Higher scores indicate stronger semantic similarity between aligned sentences.

Important: Data Quality Recommendations

⚠️ This dataset provides valuable parallel data for language pairs that are otherwise difficult to obtain, but it is not bulletproof. Please read these recommendations carefully before using the data.

Recommended Quality Assurance Steps

Before using this dataset for your specific use case, we strongly recommend:

  1. 1.Evaluate optimal filtering thresholds for your language pair
  2. 2.The current filtering threshold (cosine similarity >= 0.65) is a general baseline
  3. 3.Different language pairs may benefit from different thresholds depending on your quality requirements
  4. 4.We recommend analyzing the score distribution for your chosen language pair(s) and determining an appropriate threshold for your application
  5. 5.Consider filtering by higher scores (e.g., >= 0.75 or >= 0.80) if you need higher precision, especially for low-resource language pairs
  1. 1.Verify alignments with alternative methods
  2. 2.Cross-check alignment quality using other sentence alignment tools (e.g., AWESOME-align, SimAlign, Vecalign)
  3. 3.Consider using different cross-lingual embeddings (e.g., LaBSE, mBERT, XLM-RoBERTa) to validate alignment quality
  4. 4.Manual inspection of a sample of alignments for your target language pair is highly recommended
  1. 1.Understand the limitations
  2. 2.Alignment quality varies significantly across language pairs
  3. 3.Some language pairs may have systematic alignment errors due to differences in sentence structure or translation style
  4. 4.Low-resource language pairs may have fewer training examples and more noise

Why This Matters

This dataset was created to provide parallel text data for South African language pairs that are otherwise extremely difficult to obtain. While the alignment process uses state-of-the-art methods (LASER embeddings), no automated alignment system is perfect. The quality you need depends on your specific use case:

  • β€”For exploratory research or initial experiments: The default threshold (>= 0.65) may be sufficient
  • β€”For training production translation models: Consider higher thresholds (>= 0.75) and additional validation
  • β€”For linguistic analysis or evaluation benchmarks: Manual verification of alignments is strongly recommended

The value of this dataset lies in making available parallel sentences for language pairs where such data is scarce, but users should apply appropriate quality controls for their specific needs.

Considerations for Using the Data

Social Impact of Dataset

This dataset supports:

  • β€”βœ… Development of translation systems for South African languages
  • β€”βœ… Research on low-resource language NLP
  • β€”βœ… Preservation and promotion of linguistic diversity
  • β€”βœ… Improved access to government information across language communities

Limitations

  • β€”Domain-specific: Government/political domain - may not generalize to other domains
  • β€”Formal register: Professional translations in formal style
  • β€”Alignment quality varies: Some language pairs have fewer high-quality alignments
  • β€”Historical context: Statements reflect specific time periods and political contexts

Additional Information

Dataset Curators

  • β€”Organization: Data Science for Social Impact (DSFSI) Research Group
  • β€”Institution: University of Pretoria
  • β€”Lead: Vukosi Marivate (@vukosi)

Licensing Information

Citation Information

Paper:

bibtex
@inproceedings{lastrucci-etal-2023-preparing,
    title = "Preparing the Vuk{'}uzenzele and {ZA}-gov-multilingual {S}outh {A}frican multilingual corpora",
    author = "Richard Lastrucci and Isheanesu Dzingirai and Jenalea Rajab and Andani Madodonga and Matimba Shingange and Daniel Njini and Vukosi Marivate",
    booktitle = "Proceedings of the Fourth workshop on Resources for African Indigenous Languages (RAIL 2023)",
    month = may,
    year = "2023",
    address = "Dubrovnik, Croatia",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.rail-1.3",
    pages = "18--25"
}

Dataset:

bibtex
@dataset{marivate_vukosi_2023_7635168,
  author       = {Marivate, Vukosi and
                  Shingange, Matimba and
                  Lastrucci, Richard and
                  Dzingirai, Isheanesu and
                  Rajab, Jenalea},
  title        = {The South African Gov-ZA multilingual corpus},
  month        = feb,
  year         = 2023,
  publisher    = {Zenodo},
  version      = {1.0},
  doi          = {10.5281/zenodo.7635168},
  url          = {https://doi.org/10.5281/zenodo.7635168}
}

Disclaimer

This dataset contains machine-readable data extracted from online cabinet statements from the South African government, provided by the Government Communication Information System (GCIS). While efforts were made to ensure the accuracy and completeness of this data, there may be errors or discrepancies between the original publications and this dataset. No warranties, guarantees or representations are given in relation to the information contained in the dataset.

Contributions

Thanks to the DSFSI team for creating this dataset.

Links

  • β€”πŸ  Homepage: https://github.com/dsfsi/gov-za-multilingual
  • β€”πŸ“„ Paper: https://arxiv.org/abs/2303.03750
  • β€”πŸ—‚οΈ Source Code: https://github.com/dsfsi/gov-za-multilingual
  • β€”πŸ“Š Zenodo: https://doi.org/10.5281/zenodo.7635168