text
stringlengths
0
78.5k
https://www.thepresidency.gov.za/node/33/translate
https://www.thepresidency.gov.za/node/70/translate
https://www.thepresidency.gov.za/node/71/translate
https://www.thepresidency.gov.za/node/72/translate
https://www.thepresidency.gov.za/node/4311/translate
https://www.thepresidency.gov.za/node/4312/translate
https://www.thepresidency.gov.za/node/4313/translate
https://www.thepresidency.gov.za/node/4314/translate
https://www.thepresidency.gov.za/node/4315/translate
https://www.thepresidency.gov.za/node/4316/translate
https://www.thepresidency.gov.za/node/4317/translate
https://www.thepresidency.gov.za/node/4318/translate
https://www.thepresidency.gov.za/node/4319/translate
https://www.thepresidency.gov.za/node/4320/translate
https://www.thepresidency.gov.za/node/4321/translate
https://www.thepresidency.gov.za/node/4322/translate
https://www.thepresidency.gov.za/node/4323/translate
https://www.thepresidency.gov.za/node/4324/translate
https://www.thepresidency.gov.za/node/4325/translate
https://www.thepresidency.gov.za/node/4326/translate
https://www.thepresidency.gov.za/node/4327/translate
https://www.thepresidency.gov.za/node/4328/translate
https://www.thepresidency.gov.za/node/4329/translate
https://www.thepresidency.gov.za/node/4330/translate
https://www.thepresidency.gov.za/node/4331/translate
https://www.thepresidency.gov.za/node/4332/translate
https://www.thepresidency.gov.za/node/4333/translate
https://www.thepresidency.gov.za/node/4334/translate
https://www.thepresidency.gov.za/node/4335/translate
https://www.thepresidency.gov.za/node/4336/translate
https://www.thepresidency.gov.za/node/4337/translate
https://www.thepresidency.gov.za/node/4338/translate
https://www.thepresidency.gov.za/node/4339/translate
https://www.thepresidency.gov.za/node/4340/translate
https://www.thepresidency.gov.za/node/4341/translate
https://www.thepresidency.gov.za/node/4342/translate
https://www.thepresidency.gov.za/node/4343/translate
https://www.thepresidency.gov.za/node/4344/translate
https://www.thepresidency.gov.za/node/4345/translate
https://www.thepresidency.gov.za/node/4346/translate
https://www.thepresidency.gov.za/node/4347/translate
https://www.thepresidency.gov.za/node/4348/translate
https://www.thepresidency.gov.za/node/4349/translate
https://www.thepresidency.gov.za/node/4350/translate
https://www.thepresidency.gov.za/node/4351/translate
https://www.thepresidency.gov.za/node/4352/translate
https://www.thepresidency.gov.za/node/4353/translate
https://www.thepresidency.gov.za/node/4354/translate
https://www.thepresidency.gov.za/node/4355/translate
https://www.thepresidency.gov.za/node/4356/translate
https://www.thepresidency.gov.za/node/4357/translate
https://www.thepresidency.gov.za/node/4358/translate
https://www.thepresidency.gov.za/node/4359/translate
https://www.thepresidency.gov.za/node/4360/translate
https://www.thepresidency.gov.za/node/4361/translate
https://www.thepresidency.gov.za/node/4362/translate
https://www.thepresidency.gov.za/node/4363/translate
https://www.thepresidency.gov.za/node/4364/translate
https://www.thepresidency.gov.za/node/4365/translate
https://www.thepresidency.gov.za/node/4366/translate
https://www.thepresidency.gov.za/node/4367/translate
https://www.thepresidency.gov.za/node/4368/translate
https://www.thepresidency.gov.za/node/4369/translate
https://www.thepresidency.gov.za/node/4370/translate
https://www.thepresidency.gov.za/node/4371/translate
https://www.thepresidency.gov.za/node/4372/translate
https://www.thepresidency.gov.za/node/4373/translate
https://www.thepresidency.gov.za/node/4374/translate
https://www.thepresidency.gov.za/node/4375/translate
https://www.thepresidency.gov.za/node/4376/translate
https://www.thepresidency.gov.za/node/4377/translate
https://www.thepresidency.gov.za/node/4378/translate
https://www.thepresidency.gov.za/node/4379/translate
https://www.thepresidency.gov.za/node/4482/translate
https://www.thepresidency.gov.za/node/4483/translate
https://www.thepresidency.gov.za/node/4484/translate
https://www.thepresidency.gov.za/node/4485/translate
https://www.thepresidency.gov.za/node/4486/translate
https://www.thepresidency.gov.za/node/4487/translate
https://www.thepresidency.gov.za/node/4488/translate
https://www.thepresidency.gov.za/node/4489/translate
https://www.thepresidency.gov.za/node/4490/translate
https://www.thepresidency.gov.za/node/4491/translate
https://www.thepresidency.gov.za/node/4492/translate
https://www.thepresidency.gov.za/node/4493/translate
https://www.thepresidency.gov.za/node/4494/translate
https://www.thepresidency.gov.za/node/4495/translate
https://www.thepresidency.gov.za/node/4496/translate
https://www.thepresidency.gov.za/node/4497/translate
https://www.thepresidency.gov.za/node/4498/translate
https://www.thepresidency.gov.za/node/4499/translate
https://www.thepresidency.gov.za/node/4500/translate
https://www.thepresidency.gov.za/node/4501/translate
https://www.thepresidency.gov.za/node/4502/translate
https://www.thepresidency.gov.za/node/4503/translate
https://www.thepresidency.gov.za/node/4504/translate
https://www.thepresidency.gov.za/node/4505/translate
https://www.thepresidency.gov.za/node/4506/translate
https://www.thepresidency.gov.za/node/4507/translate
https://www.thepresidency.gov.za/node/4508/translate

South African Presidential Statements Dataset

Overview

This dataset contains South African presidential statements in multiple South African languages. It is a valuable resource for tasks in Natural Language Processing (NLP) and Machine Translation, particularly for low-resource languages. Multilingual datasets for South African languages are scarce, making it challenging to build robust NLP models. This dataset helps fill that gap by providing presidential statements in multiple South African languages. This datasets contains statements from 9 February 2012 until 9 October 2023. This is my contribution, hopefully this is helpful.

Folders and files in the Dataset

  1. Unorganised Datasets (folder):presidential_statements.json(file):

    • Contains presidential statements drafted in South African languages.
  2. Organised Datasets (folder):nso_xh_ts.json(file):

    • Contains translations of the presidential statements in these three languages:
      • Northern Sotho (NSO)
      • isiXhosa (XH)
      • Xitsonga (TS)
  3. Notes (folder):statements_urls.txt(file) and unbalanced_statements_data_info.txt(file):

    • Contains files which describe the nature of the data
      • statements_urls.txt is a file with the list of urls from which the statements were extracted.
      • unbalanced_statements_data_info.txt is a file with the statements which do not have all the translations
  4. Scripts (folder): multilingual-statement-scraping.ipynb (file) and link-scraping.ipynb (file)

    • link-scraping.ipynb This script scans pages on the South African Presidency's website to identify URLs that contain multilingual translations of presidential statements. It checks for accessible translation pages and saves the valid URLs to a text file.
    • multilingual-statement-scraping.ipynb This script scrapes multilingual presidential statements from a series of web pages and identifies and processes language-specific links on each page, extracts the corresponding text of the statements, and then organises the data into a structured dictionary.

Applications

There are many, but the structure is perfect for 1. Machine Translation: Build and evaluate models for translating between all spoken South African languages. 2. Low-Resource NLP Research: Enhance language understanding for underrepresented and under-resourced languages. 3. Sentiment Analysis: Analyse public sentiments in different languages using presidential speeches.

Dataset Structure

Each file is structured as a JSON object with keys representing unique statement IDs. The translations are aligned across languages to facilitate easy use in NLP tasks.

Example JSON Structure:

{
    Statement 1": {
            "Afrikaans" : { "link" : url
                            "statement" : text
                          }
            "English(source)" : { "link" : url
                                  "statement" : text
                                }
            "isiNdebele" : { "link" : url
                              "statement" : text
                            }
            "isiXhosa" : { "link" : url
                            "statement" : text
                          }
    }
}

Citation and License

If you use this dataset, please credit as follows:

BibTeX:

@misc {malesela_legodi_2024,
    author       = { {Malesela Legodi} },
    title        = { South-Africa-Presidential-Speeches-Text-and-NLP-Dataset (Revision fa2ca6e) },
    year         = 2024,
    url          = { https://huggingface.co/datasets/maleselalegodi/South-Africa-Presidential-Speeches-Text-and-NLP-Dataset },
    doi          = { 10.57967/hf/3781 },
    publisher    = { Hugging Face }
}

Note

The same version of data is available on both Kaggle and Hugging Face

Downloads last month
27