Update README.md
Browse files
README.md
CHANGED
|
@@ -10,11 +10,11 @@ tags:
|
|
| 10 |
- reviews
|
| 11 |
---
|
| 12 |
|
| 13 |
-
#
|
| 14 |
|
| 15 |
-
**
|
| 16 |
|
| 17 |
-
This model has been trained on a **large and diverse dataset of news articles** across a wide range of categories. It achieves **over 86% accuracy** and demonstrates a strong understanding of sentence-level sentiment, even in nuanced or mixed-context cases.
|
| 18 |
|
| 19 |
---
|
| 20 |
|
|
@@ -47,8 +47,8 @@ This model is well-suited for:
|
|
| 47 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 48 |
import torch
|
| 49 |
|
| 50 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
| 51 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 52 |
|
| 53 |
text = "The government’s response to the crisis was surprisingly effective."
|
| 54 |
inputs = tokenizer(text, return_tensors="pt")
|
|
|
|
| 10 |
- reviews
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# SentimentBERT — Fine-tuned BERT for Sentiment Classification (Positive, Neutral, Negative)
|
| 14 |
|
| 15 |
+
**SentimentBERT** is a Finetuned BERT-based model specifically for **sentiment classification of sentences** into three categories: **Positive**, **Negative**, and **Neutral**.
|
| 16 |
|
| 17 |
+
This model has been trained on a ** 130K large and diverse dataset of news articles** across a wide range of categories. It achieves **over 86% accuracy** and demonstrates a strong understanding of sentence-level sentiment, even in nuanced or mixed-context cases.
|
| 18 |
|
| 19 |
---
|
| 20 |
|
|
|
|
| 47 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 48 |
import torch
|
| 49 |
|
| 50 |
+
model = AutoModelForSequenceClassification.from_pretrained("mervp/SentimentBERT")
|
| 51 |
+
tokenizer = AutoTokenizer.from_pretrained("mervp/SentimentBERT")
|
| 52 |
|
| 53 |
text = "The government’s response to the crisis was surprisingly effective."
|
| 54 |
inputs = tokenizer(text, return_tensors="pt")
|