Instructions to use menutp/profanity-fr-65ac with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use menutp/profanity-fr-65ac with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="menutp/profanity-fr-65ac")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("menutp/profanity-fr-65ac") model = AutoModelForSequenceClassification.from_pretrained("menutp/profanity-fr-65ac", device_map="auto") - Notebooks
- Google Colab
- Kaggle
this model was trained on 95% of my dataset menutp/hate_speech-fr_mini and validated on the last 5% it reached 65% accuracy. labels are to be interpreted as follow :
{
0: "neutral",
1: "toxic",
2: "severe toxic",
3: "obscene",
4: "threat",
5: "insult",
6: "identity hate",
7: "generally_offensive"
}
due to the lack of training data for the label between 1 and 6 only label 0 and 7 are to be trusted
- Downloads last month
- 6