Downloads · 30 days
9
36% of all-time downloads
kushalbajje/BERT
BERT is a text classification model from kushalbajje. 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.
This model is a fine-tuned BERT model for classifying messages as either "spam" or "ham" (non-spam). It was trained on the Telegram Spam dataset and can be used to filter out unwanted messages in various applications…
Downloads · 30 days
9
36% of all-time downloads
All-time downloads
25
Public
Parameters
109M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt876 MB · 67%
From the Hugging Face model README
This model is a fine-tuned BERT model for classifying messages as either "spam" or "ham" (non-spam). It was trained on the Telegram Spam dataset and can be used to filter out unwanted messages in various applications like email filtering systems, SMS spam detection, and maintaining the integrity of messaging platforms.
The model was trained on the Telegram Spam dataset available on Hugging Face Datasets. The dataset contains labeled messages as either spam or ham.
To use this model, you need to install the transformers library and authenticate with your Hugging Face account if the model is private.
pip install transformers
from transformers import pipeline
# Load the model and tokenizer
model_id = 'kushalbajje/BERT' # Replace with your model ID
classifier = pipeline('text-classification', model=model_id, tokenizer=model_id)
# Classify a sample message
message = "Congratulations! You've won a $1000 gift card. Click here to claim your prize."
result = classifier(message)
print(result)