Bert_sentiment_classifier

A BERT (bert-base-uncased) model fine-tuned for 3-class sentiment classification:

  • Positive
  • Neutral
  • Negative

Labels

id label
0 Neutral
1 Positive
2 Negative

Test Drive

Try one of these examples into the widget:

  • Negative: "Dirty. Generally poor attitude among the nurses, even the good know the place sucks. When patients are crying for help nurse should not be busy watching Tik-Tok. Too many mistakes made too often. Teaching nurses instructing student nurse procedures incorrectly. Yes, it is bad."
  • Neutral: "I received the update and will review it later this week."
  • Positive: "I had surgery last month. and I was very impressed with the quality of service from the moment I got in till I left. Also I like to mention the nurses they were out standing"

Try it out

How to use

Transformers pipeline

from transformers import pipeline

clf = pipeline(
    "text-classification",
    model="pokwir/Bert_sentiment_classifier",
    tokenizer="pokwir/Bert_sentiment_classifier",
    return_all_scores=True
)

texts = [
    "Dirty. Generally poor attitude among the nurses, even the good know the place sucks. When patients are crying for help nurse should not be busy watching Tik-Tok. Too many mistakes made too often. Teaching nurses instructing student nurse procedures incorrectly. Yes, it is bad.",
    "I had surgery last month. and I was very impressed with the quality of service from the moment I got in till I left. Also I like to mention the nurses they were out standing.",
    "This hospital has been going downhill for years thanks to dr.billie and her know all attitude she should go back to her vet clinic."
]

print(clf(texts))
Downloads last month
84
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for POKWIR/Bert_sentiment_classifier

Finetuned
(57)
this model

Space using POKWIR/Bert_sentiment_classifier 1