Downloads · 30 days
1.6K
2% of all-time downloads
michelleli99/inappropriate_text_classifier
inappropriate_text_classifier is a text classification model from michelleli99. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as creativeml-openrail-m.
DistilBERT is a transformer model that performs sentiment analysis. I fine-tuned the model on Reddit posts with the purpose of classifying not safe for work (NSFW) content, specifically text that is considered inappro…
Downloads · 30 days
1.6K
2% of all-time downloads
All-time downloads
78.5K
Public
Repo size
536 MB
Likes
11
Public
Click a slice to open those files.
.bin268 MB · 100%
From the Hugging Face model README
DistilBERT is a transformer model that performs sentiment analysis. I fine-tuned the model on Reddit posts with the purpose of classifying not safe for work (NSFW) content, specifically text that is considered inappropriate and unprofessional. The model predicts 2 classes, which are NSFW or safe for work (SFW).
The model is a fine-tuned version of DistilBERT.
It was fine-tuned on 19604 Reddit posts pulled from the Comprehensive Abusiveness Detection Dataset.
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="michellejieli/inappropriate_text_classifier")
classifier("I see you’ve set aside this special time to humiliate yourself in public.")
Output:
[{'label': 'NSFW', 'score': 0.9684491753578186}]
Please reach out to michelle.li851@duke.edu if you have any questions or feedback.
Hoyun Song, Soo Hyun Ryu, Huije Lee, and Jong Park. 2021. A Large-scale Comprehensive Abusiveness Detection Dataset with Multifaceted Labels from Reddit. In Proceedings of the 25th Conference on Computational Natural Language Learning, pages 552–561, Online. Association for Computational Linguistics.