Text Classification
Transformers
Safetensors
English
bert
sentiment analysis
text classification
news
reviews
text-embeddings-inference
Instructions to use mervp/SentimentBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mervp/SentimentBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mervp/SentimentBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mervp/SentimentBERT") model = AutoModelForSequenceClassification.from_pretrained("mervp/SentimentBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,7 +18,7 @@ This model has been trained on a **large and diverse dataset of news articles**
|
|
| 18 |
|
| 19 |
---
|
| 20 |
|
| 21 |
-
##
|
| 22 |
|
| 23 |
- **Base model**: `bert-base-uncased`
|
| 24 |
- **Fine-tuned for**: Sentiment classification (3-class)
|
|
@@ -30,7 +30,7 @@ This model has been trained on a **large and diverse dataset of news articles**
|
|
| 30 |
|
| 31 |
---
|
| 32 |
|
| 33 |
-
##
|
| 34 |
|
| 35 |
This model is well-suited for:
|
| 36 |
|
|
@@ -41,7 +41,7 @@ This model is well-suited for:
|
|
| 41 |
|
| 42 |
---
|
| 43 |
|
| 44 |
-
##
|
| 45 |
|
| 46 |
```python
|
| 47 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
|
|
| 18 |
|
| 19 |
---
|
| 20 |
|
| 21 |
+
## Model Highlights
|
| 22 |
|
| 23 |
- **Base model**: `bert-base-uncased`
|
| 24 |
- **Fine-tuned for**: Sentiment classification (3-class)
|
|
|
|
| 30 |
|
| 31 |
---
|
| 32 |
|
| 33 |
+
## Applications
|
| 34 |
|
| 35 |
This model is well-suited for:
|
| 36 |
|
|
|
|
| 41 |
|
| 42 |
---
|
| 43 |
|
| 44 |
+
## Usage Example
|
| 45 |
|
| 46 |
```python
|
| 47 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|