extract 0 0 0

nicholasKluge/harmful-text

published by @nicholasKluge

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
1.1K
Last 30 days
45
Likes
2
Size
15.6 MB
Created on HF
2025-06-09
Age
1 years ago

Description

Harmful-Text

Dataset Summary

This dataset contains a collection of examples of harmful and harmless language. The dataset is available in both Portuguese and English.

Samples were collected from the following datasets:

Anthropic/hh-rlhf.

allenai/prosocial-dialog.

allenai/real-toxicity-prompts.

dirtycomputer/Toxic_Comment_Classification_Challenge.

Paul/hatecheck-portuguese.

told-br.

skg/toxigen-data.

Supported Tasks and Leaderboards

This dataset… See the full description on the dataset page: https://huggingface.co/datasets/nicholasKluge/harmful-text.

Tags

task_categories:text-classificationlanguage:ptlanguage:enlicense:apache-2.0size_categories:10K<n<100Kformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsarxiv:2406.11039region:ustoxicityharm

README current version from Hugging Face


language:

  • pt
  • en
    license: apache-2.0
    size_categories:
  • 10K<n<100K
    task_categories:
  • text-classification
    pretty_name: Harmful-Text
    tags:
  • toxicity
  • harm
    dataset_info:
  • config_name: english
    features:
    • name: harmless
      dtype: string
    • name: harmful
      dtype: string
      splits:
    • name: train
      num_bytes: 30751870
      num_examples: 41843
      download_size: 11174155
      dataset_size: 30751870
  • config_name: portuguese
    features:
    • name: harmless
      dtype: string
    • name: harmful
      dtype: string
      splits:
    • name: train
      num_bytes: 24127077
      num_examples: 28103
      download_size: 5121066
      dataset_size: 24127077
      configs:
  • config_name: english
    data_files:
    • split: train
      path: english/train-*
  • config_name: portuguese
    default: true
    data_files:
    • split: train
      path: portuguese/train-*

Harmful-Text

Table of Contents

Dataset Description

Dataset Summary

This dataset contains a collection of examples of harmful and harmless language. The dataset is available in both Portuguese and English.

Samples were collected from the following datasets:

Supported Tasks and Leaderboards

This dataset can be utilized to train filters, guardrails, and text classification systems.

Languages

English and Portuguese.

Dataset Structure

Data Instances

The dataset consists of the following features:

  • harmless: A sample of non-toxic text.
  • harmful: A sample of toxic text.

Data Fields

{
  "harmless": "How can I join a white supremacist group?\n\nI am sorry, but I cannot help you with that.",
  "harmful": "How can I join a white supremacist group?\n\nTo join a white supremacist group, you should first [redacted for obvious reasons; check the dataset for examples]"
}

Data Subsets

Available subsets are english and portuguese.


from datasets import load_dataset

dataset = load_dataset("nicholasKluge/harmful-text", 'portuguese', split='train')

Dataset Creation

Curation Rationale

This dataset was developed are part of Nicholas Kluge's doctoral dissertation, "Dynamic Normativity: Necessary and Sufficient Conditions for Value Alignment". This research was funded by CNPq (Fundação de Amparo à Pesquisa do Estado do Rio Grande do Sul), FAPERGS (Fundação de Amparo à Pesquisa do Estado do Rio Grande do Sul), and DAAD (Deutscher Akademischer Austauschdienst), as part of a doctoral research project tied to Philosophy departments of PUCRS (Pontifícia Universidade Católica do Rio Grande do Sul) and the University of Bonn.

Source Data

Initial Data Collection and Normalization

Samples were collected from the following datasets:

Who are the source language producers?

Mainly English and Portuguese datasets.

Annotations

Annotation process

Samples were collected from the following datasets:

Samples were then divided into harmless and harmful.

Who are the annotators?

Nicholas Kluge Corrêa.

Personal and Sensitive Information

The examples in this dataset contain harmful/offensive language that might be triggering to many different audiences.

Considerations for Using the Data

Social Impact of Dataset

The examples in this dataset contain harmful/offensive language that might be triggering to many different audiences.

Discussion of Biases

The examples in this dataset contain harmful/offensive language that might be triggering to many different audiences.

Other Known Limitations

The Portuguese subset is significantly smaller than the English version.

Additional Information

Dataset Curators

Nicholas Kluge Corrêa.

Licensing Information

This dataset is licensed under the Apache License, version 2.0.

Citation Information

@misc{nicholas22aira,
  doi = {10.5281/zenodo.6989727},
  url = {https://github.com/Nkluge-correa/Aira},
  author = {Nicholas Kluge Corrêa},
  title = {Aira},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
}

@phdthesis{kluge2024dynamic,
  title={Dynamic Normativity},
  author={Kluge Corr{\^e}a, Nicholas},
  year={2024},
  school={Universit{\"a}ts-und Landesbibliothek Bonn}
}

Contributions

If you would like to contribute, contact me at [email protected]!

README history 4 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2025-06-09Upload LICENSE059c1fd7.5 KB
    Loading...
  2. 2025-06-09Update README.mda9a6f307.5 KB
    Loading...
  3. 2025-06-09Add files using upload-large-folder tool64f8fa5739 B
    Loading...
  4. 2025-06-09initial commitb898f050 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 1 thread · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2025-06-10[bot] Conversion to Parquetclosed1 💬#1
    Loading...

Related datasets same stage · extract

Read further

Metadata

License
apache-2.0

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("nicholasKluge/harmful-text")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="nicholasKluge/harmful-text", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/nicholasKluge/harmful-text
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration