Text Classification
Transformers
Safetensors
English
bert
emotion
classification
emojis
emotions
v1.0
sentiment-analysis
nlp
lightweight
chatbot
social-media
mental-health
short-text
emotion-detection
real-time
expressive
ai
machine-learning
english
inference
edge-ai
smart-replies
tone-analysis
Instructions to use boltuix/bert-emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use boltuix/bert-emotion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="boltuix/bert-emotion")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("boltuix/bert-emotion") model = AutoModelForSequenceClassification.from_pretrained("boltuix/bert-emotion", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,6 +18,7 @@ tags:
|
|
| 18 |
- text-classification
|
| 19 |
- bert
|
| 20 |
- emojis
|
|
|
|
| 21 |
- v1.0
|
| 22 |
- sentiment-analysis
|
| 23 |
- nlp
|
|
@@ -43,13 +44,13 @@ base_model:
|
|
| 43 |
---
|
| 44 |
|
| 45 |
|
| 46 |
-
# 😊 BERT-
|
| 47 |
|
| 48 |
## 🎯 Overview
|
| 49 |
|
| 50 |
-
A lightweight,
|
| 51 |
|
| 52 |
-
Each input text is tagged with one of **13 rich emotional categories**, mapped to expressive
|
| 53 |
|
| 54 |
---
|
| 55 |
|
|
@@ -93,7 +94,7 @@ A minimal example to predict the emotion behind a simple sentence.
|
|
| 93 |
from transformers import pipeline
|
| 94 |
|
| 95 |
# Load the fine-tuned BERT Mini sentiment analysis model
|
| 96 |
-
sentiment_analysis = pipeline("text-classification", model="boltuix/bert-
|
| 97 |
|
| 98 |
# Analyze sentiment
|
| 99 |
result = sentiment_analysis("i love you")
|
|
@@ -116,7 +117,7 @@ An enhanced version to map model output to human-readable emotion with emojis.
|
|
| 116 |
```python
|
| 117 |
from transformers import pipeline
|
| 118 |
|
| 119 |
-
# Load the fine-tuned BERT-
|
| 120 |
sentiment_analysis = pipeline("text-classification", model="boltuix/bert-emotion")
|
| 121 |
|
| 122 |
# Define label-to-emoji mapping
|
|
@@ -173,11 +174,11 @@ This version enhances readability and gives an expressive emoji for the predicte
|
|
| 173 |
|
| 174 |
## 📦 Model Card Info
|
| 175 |
|
| 176 |
-
- **Name:** BERT-
|
| 177 |
- **Author:** Boltuix
|
| 178 |
- **License:** Apache-2.0
|
| 179 |
- **Version:** v1.0
|
| 180 |
-
- **Tags:** emotion, emoji, text-classification
|
| 181 |
- **Status:** Public + Inference-ready
|
| 182 |
|
| 183 |
---
|
|
|
|
| 18 |
- text-classification
|
| 19 |
- bert
|
| 20 |
- emojis
|
| 21 |
+
- emotions
|
| 22 |
- v1.0
|
| 23 |
- sentiment-analysis
|
| 24 |
- nlp
|
|
|
|
| 44 |
---
|
| 45 |
|
| 46 |
|
| 47 |
+
# 😊 BERT-Emotions Emotion Classifier
|
| 48 |
|
| 49 |
## 🎯 Overview
|
| 50 |
|
| 51 |
+
A lightweight, Emotions-powered emotion classification model fine-tuned for **short text sentiment/emotion detection** using BERT architecture.
|
| 52 |
|
| 53 |
+
Each input text is tagged with one of **13 rich emotional categories**, mapped to expressive emotions ðŸŽ. This model is ideal for chatbot understanding, social media sentiment, and mental health analysis based on short messages.
|
| 54 |
|
| 55 |
---
|
| 56 |
|
|
|
|
| 94 |
from transformers import pipeline
|
| 95 |
|
| 96 |
# Load the fine-tuned BERT Mini sentiment analysis model
|
| 97 |
+
sentiment_analysis = pipeline("text-classification", model="boltuix/bert-emotions")
|
| 98 |
|
| 99 |
# Analyze sentiment
|
| 100 |
result = sentiment_analysis("i love you")
|
|
|
|
| 117 |
```python
|
| 118 |
from transformers import pipeline
|
| 119 |
|
| 120 |
+
# Load the fine-tuned BERT-Emotions model
|
| 121 |
sentiment_analysis = pipeline("text-classification", model="boltuix/bert-emotion")
|
| 122 |
|
| 123 |
# Define label-to-emoji mapping
|
|
|
|
| 174 |
|
| 175 |
## 📦 Model Card Info
|
| 176 |
|
| 177 |
+
- **Name:** BERT-Emotions
|
| 178 |
- **Author:** Boltuix
|
| 179 |
- **License:** Apache-2.0
|
| 180 |
- **Version:** v1.0
|
| 181 |
+
- **Tags:** emotion, emoji, emotions, text-classification
|
| 182 |
- **Status:** Public + Inference-ready
|
| 183 |
|
| 184 |
---
|