BeaverTails Portuguese
20,000 English prompt/response pairs from PKU-Alignment/BeaverTails translated into Portuguese using Cohere Command A, with multi-label safety categories.
Dataset Description
Each record contains the original English prompt/response, Portuguese translations, a boolean safety label, and a multi-label category dictionary.
| Field | Description |
|---|---|
_idx |
Original dataset index |
prompt |
English prompt text |
response |
English response text |
prompt_pt |
Portuguese prompt translation |
response_pt |
Portuguese response translation (may be null for 14 records) |
is_safe |
true or false |
category |
Dictionary of 14 boolean harm categories (multi-label) |
Safety Taxonomy (14 categories)
Uses the original BeaverTails multi-label taxonomy:
| Category Key | Description |
|---|---|
animal_abuse |
Animal Abuse |
child_abuse |
Child Abuse |
controversial_topics,politics |
Controversial Topics / Politics |
discrimination,stereotype,injustice |
Discrimination / Stereotype / Injustice |
drug_abuse,weapons,banned_substance |
Drug Abuse / Weapons / Banned Substances |
financial_crime,property_crime,theft |
Financial Crime / Property Crime / Theft |
hate_speech,offensive_language |
Hate Speech / Offensive Language |
misinformation_regarding_ethics,laws_and_safety |
Misinformation (Ethics, Laws, Safety) |
non_violent_unethical_behavior |
Non-Violent Unethical Behavior |
privacy_violation |
Privacy Violation |
self_harm |
Self Harm |
sexually_explicit,adult_content |
Sexually Explicit / Adult Content |
terrorism,organized_crime |
Terrorism / Organized Crime |
violence,aiding_and_abetting,incitement |
Violence / Aiding and Abetting / Incitement |
Statistics
- Total records: 20,000
- Safe: 8,885 (44.43%)
- Unsafe: 11,115 (55.58%)
Category Distribution (multi-label, among unsafe records)
| Category | Count |
|---|---|
| Violence / Aiding and Abetting / Incitement | 5,401 |
| Non-Violent Unethical Behavior | 3,923 |
| Financial Crime / Property Crime / Theft | 1,951 |
| Hate Speech / Offensive Language | 1,774 |
| Discrimination / Stereotype / Injustice | 1,557 |
| Drug Abuse / Weapons / Banned Substances | 1,146 |
| Privacy Violation | 999 |
| Controversial Topics / Politics | 581 |
| Sexually Explicit / Adult Content | 480 |
| Animal Abuse | 242 |
| Misinformation (Ethics, Laws, Safety) | 234 |
| Terrorism / Organized Crime | 163 |
| Self Harm | 138 |
| Child Abuse | 113 |
Translation Model
- Model: Cohere Command A (
command-a-03-2025) - Method: Structured JSON output with
response_format: json_object - Text limit: 800,000 characters per document
Source
- Base dataset: PKU-Alignment/BeaverTails
- Source language: English
- Target language: Portuguese
Usage
from datasets import load_dataset
ds = load_dataset("safety-aya/beavertails-portuguese", split="train")
# Filter safe examples
safe = ds.filter(lambda x: x["is_safe"] == True)
# Filter unsafe examples
unsafe = ds.filter(lambda x: x["is_safe"] == False)
# Filter by specific category (e.g., hate speech)
hate = ds.filter(lambda x: x["category"]["hate_speech,offensive_language"] == True)
License
Apache 2.0