audit_parliamentary_speech
Audit Portuguese political or parliamentary speech for offensive content and hate speech. Returns classification, confidence, uncertainty, and a human-review flag for borderline cases.
Instructions
Audit Portuguese parliamentary or political speech for offensive content.
Use this tool whenever a user asks you to analyse, moderate, classify, or safety-check political / legislative discourse in Portuguese (PT-BR), including floor speeches, committee interventions, social-media posts by elected officials, and campaign rhetoric.
The underlying BERTimbau-based classifier estimates:
Predominant category (neutral vs. offense / hate-speech tiers)
Softmax confidence for the top class
Shannon-entropy uncertainty; high entropy (
> 0.60) setsrequires_human_review=Trueso borderline cases can be escalated
Args: text: Raw Portuguese utterance or transcript excerpt to audit.
Returns:
Structured audit dictionary with classification, confidence,
entropy_uncertainty, class_probabilities, and
requires_human_review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||