Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

guardrails-ai-bert-toxic

Validates that the input string does not contain toxic language based on a BERT model.

Installation

pip install guardrails-ai-bert-toxic

This validator ships local models. After installing, run the post-install step to download them:

python -m guardrails_ai.bert_toxic.post_install

Usage

from guardrails import Guard
from guardrails_ai.bert_toxic import BertToxic

guard = Guard().use(BertToxic)

License

MIT — © Guardrails AI.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guardrails_ai_bert_toxic-0.2.1a1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guardrails_ai_bert_toxic-0.2.1a1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file guardrails_ai_bert_toxic-0.2.1a1.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_bert_toxic-0.2.1a1.tar.gz
Algorithm Hash digest
SHA256 b8df08df6f0ef02e6fdf4431ecb201067da2aabd3315d5ef7c8bcc0de9f239a5
MD5 86df3499240cc894cc536f8062739da2
BLAKE2b-256 49d29ed0a9901a41d11d6318b6e627cd00905d768016c60636ea6c4907b65bd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardrails_ai_bert_toxic-0.2.1a1.tar.gz:

Publisher: validators_publish.yml on guardrails-ai/guardrails-hub-monorepo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file guardrails_ai_bert_toxic-0.2.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_bert_toxic-0.2.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 5729603d5aed67288b054a53131c49452c8656c6d9cb9ff05d6da139c1807fc5
MD5 602ec03016b1ed6fffc6afa5f75f0a78
BLAKE2b-256 6a8310710075d9b7fd8a31b8f51c7938896bcabd62fd573bd17c560c4301e9f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardrails_ai_bert_toxic-0.2.1a1-py3-none-any.whl:

Publisher: validators_publish.yml on guardrails-ai/guardrails-hub-monorepo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.1a1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page