Downloads · 30 days
11
26% of all-time downloads
annieske/bert-base-finnish-cased-toxicity
bert-base-finnish-cased-toxicity is a text classification model from annieske. Use it when you need a label for a piece of text. It is set up for transformers.
This is a toxicity identification model which classifies a text as either "toxic" or "non-toxic".
Downloads · 30 days
11
26% of all-time downloads
All-time downloads
43
Public
Parameters
125M
498 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 100%
From the Hugging Face model README
This is a toxicity identification model which classifies a text as either "toxic" or "non-toxic".
This is a toxicity identification model which classifies a text as either "toxic" or "non-toxic".
This model is intended to be used to as a helpful tool for content moderation.
The model is sometimes very sensitive to toxicity and might classify non-toxic texts as toxic.
Use the code below to get started with the model.
>>> model = transformers.AutoModelForSequenceClassification.from_pretrained("annieske/bert-base-finnish-cased-toxicity")
>>> tokenizer = transformers.AutoTokenizer.from_pretrained("TurkuNLP/bert-base-finnish-cased-v1")
>>> pipe = transformers.pipeline(task="text-classification", model=model, tokenizer=tokenizer)
>>> pipe("This text is neutral!")
>>> pipe("You suck!")
Training data included ten different toxicity and related task datasets that were machine translated to Finnish and the labels were unified.
The datasets can be found in GitHub.
No preprocessing was done on the training data.
A manually annotated Finnish dataset consisting of 600 examples which is a sample of the "TurkuNLP/Suomi24-toxicity-annotated" dataset. Includes 299 non-toxic examples and 301 toxic examples.
The dataset can be foung in GitHub.
BibTeX:
Citation information coming later.