Downloads · 30 days
19
21% of all-time downloads
HrishikeshDeore/Bert_base_finetuned_IMDB
Bert_base_finetuned_IMDB is a text classification model from HrishikeshDeore. 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.
A BERT-based model fine-tuned on the IMDB movie reviews dataset for binary sentiment classification (positive/negative). This model is intended for quick deployment and practical use in applications like review analys…
Downloads · 30 days
19
21% of all-time downloads
All-time downloads
89
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
A BERT-based model fine-tuned on the IMDB movie reviews dataset for binary sentiment classification (positive/negative). This model is intended for quick deployment and practical use in applications like review analysis, recommendation systems, and content moderation.
bert-base-uncasedpositive, negativebert-base-uncasedfrom transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model = AutoModelForSequenceClassification.from_pretrained("HrishikeshDeore/sentiment-bert-imdb")
tokenizer = AutoTokenizer.from_pretrained("HrishikeshDeore/sentiment-bert-imdb")
nlp = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
result = nlp("This movie was absolutely fantastic!")
print(result)