Metadata-Version: 2.4
Name: guardrails-ai-bert-toxic
Version: 0.2.1a1
Summary: Validates that the input string does not contain toxic language based on a BERT model.
Author: Guardrails AI
License-Expression: MIT
Project-URL: Homepage, https://guardrailsai.com
Project-URL: Repository, https://github.com/guardrails-ai/guardrails-hub-monorepo/tree/main/bert_toxic/py
Project-URL: Documentation, https://github.com/guardrails-ai/guardrails-hub-monorepo/blob/main/bert_toxic/py/README.md
Requires-Python: <4,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: guardrails-ai>=0.4.0
Requires-Dist: nltk
Requires-Dist: torch>=2.1
Requires-Dist: transformers>=4.40
Provides-Extra: dev
Requires-Dist: ruff; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: coverage>=7.6.12; extra == "dev"
Requires-Dist: pyright[nodejs]>=1.1.396; extra == "dev"
Dynamic: license-file

# guardrails-ai-bert-toxic

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

## Installation

```bash
pip install guardrails-ai-bert-toxic
```

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

```bash
python -m guardrails_ai.bert_toxic.post_install
```

## Usage

```python
from guardrails import Guard
from guardrails_ai.bert_toxic import BertToxic

guard = Guard().use(BertToxic)
```

## License

MIT — © Guardrails AI.
