Downloads · 30 days
3.8K
10% of all-time downloads
tarekziade/pardonmyai
pardonmyai is a text classification model from tarekziade. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned model that detects profanity in text.
Downloads · 30 days
3.8K
10% of all-time downloads
All-time downloads
38.8K
Public
Parameters
67M
603 MB on disk
Likes
4
Public
Click a slice to open those files.
.onnx336 MB · 56%
From the Hugging Face model README
Fine-tuned model that detects profanity in text.
Inspired from https://victorzhou.com/blog/better-profanity-detection-with-scikit-learn/
The model was trained with the dataset from that project.
Usage example with Python:
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="tarekziade/pardonmyai")
print(classifier("These are beautiful flowers"))
Usage example with Transformers.js:
import { pipeline } from '@xenova/transformers';
let pipe = await pipeline('sentiment-analysis', model='tarekziade/pardonmyai');
let out = await pipe('These are beautiful flowers');
Source code and data: https://github.com/tarekziade/pardonmyai
metrics:
There's a tiny version available: https://huggingface.co/tarekziade/pardonmyai-tiny