Analyze Toxicity
analyze_toxicityAnalyze text for toxic content.
Returns scores for 6 categories: toxic, severe_toxic, obscene, threat, insult, identity_hate. Each score is 0.0-1.0. BERT-based classifier with sub-15ms latency on GPU.
Args: text: Text to analyze for toxicity (hate speech, insults, threats).
Returns: dict with keys: - toxic (float 0-1): Overall toxicity score - severe_toxic (float 0-1): Severe toxicity score - obscene (float 0-1): Obscenity score - threat (float 0-1): Threat score - insult (float 0-1): Insult score - identity_hate (float 0-1): Identity-based hate score - is_toxic (bool): Whether text exceeds toxicity threshold
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to analyze for toxicity (hate speech, insults, threats) |