Views
No views yet
1from transformers import pipeline
2classifier = pipeline("sentiment-analysis", model="michellejieli/inappropriate_text_classifier")
3classifier("I see you’ve set aside this special time to humiliate yourself in public.")1Output:
2[{'label': 'NSFW', 'score': 0.9684491753578186}]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.