Downloads · 30 days
5
10% of all-time downloads
akaruineko/ftan-2.0
ftan-2.0 is a text classification model from akaruineko. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
ftan-2.0 is a fine-tuned DistilBERT sequence classification model for detecting offensive text.
Downloads · 30 days
5
10% of all-time downloads
All-time downloads
52
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
ftan-2.0 is a fine-tuned DistilBERT sequence classification model for detecting offensive text.
The model predicts one of two labels:
clean — non-offensive textoffensive — offensive textftan-2.0 is the continuation of the akaruineko/bad-good-classifier-ru_en project.
The new version was trained on the akaruineko/offensively-neutral dataset, containing approximately 1.3 million text samples.
Training used a larger dataset than the previous model and included evaluation across multiple epochs to select the best-performing checkpoint.
The best checkpoint was selected based on evaluation performance rather than simply using the final training checkpoint.
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="akaruineko/ftan-2.0"
)
result = classifier("you are stupid")
print(result)
Example:
[{'label': 'offensive', 'score': 0.965}]
ftan-2.0 can be used for:
This model should not be treated as a perfect moderation system.
Offensiveness can depend heavily on context, intent, quotation, sarcasm, reclaimed language, and the surrounding conversation. The model may therefore produce incorrect predictions for ambiguous or context-dependent text.
For example, a sentence discussing an offensive word may still receive a non-trivial offensive score even when the sentence itself is not an insult.
The model also operates on individual text inputs and does not have access to conversation history unless it is explicitly provided as input.
Some example inference results:
"b****" # censored
→ offensive (0.988)
"you are stupid"
→ offensive (0.965)
"the word \"stupid\" is offensive"
→ offensive (0.695)
"beach"
→ clean (0.922)
These examples are illustrative and should not be interpreted as a formal benchmark.
See the repository/model files for the applicable license.
Created by akaruineko.
This model is the 2.0 continuation of the bad-good-classifier-ru_en project.