Downloads · 30 days
13
2% of all-time downloads
ZiruiXiong/bert-base-finetuned-toxic-comment-classification
bert-base-finetuned-toxic-comment-classification is a text classification model from ZiruiXiong. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as afl-3.0.
This model is a fine-tuned version of bert-base-uncased on the Kaggle jigsaw toxic comment classification dataset.
Downloads · 30 days
13
2% of all-time downloads
All-time downloads
720
Public
Repo size
1.3 GB
Likes
3
Public
Click a slice to open those files.
.bin438 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of bert-base-uncased on the Kaggle jigsaw toxic comment classification dataset.
You can use the model with the following code.
from transformers import AutoModelForSequenceClassification, AutoTokenizer, TextClassificationPipeline
model_path = "ZiruiXiong/bert-base-finetuned-toxic-comment-classification"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForSequenceClassification.from_pretrained(model_path)
pipeline = TextClassificationPipeline(model=model, tokenizer=tokenizer)
print(pipeline('You are also a liar since I hardly spoke with you.'))
The model achieves 0.95 AUC in a 1500 rows held-out test set.