File size: 2,122 Bytes
437c6f8 236205b caecf37 437c6f8 236205b caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 93a83e1 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 437c6f8 caecf37 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | ---
library_name: transformers
pipeline_tag: text-classification
tags:
- sentiment-analysis
- bert
- goemotions
- nlp
---
# Model Card for Sentiment Analysis (Positive / Negative / Neutral)
## Model Details
### Model Description
This model is a fine-tuned BERT-based transformer model for **sentiment analysis**.
It is trained using the GoEmotions dataset, where the original 27 emotion labels are **mapped into three categories**:
- Positive ๐
- Negative ๐ก
- Neutral ๐
The model takes text input and predicts its overall sentiment.
- **Developed by:** Krish Agrawal
- **Model type:** BERT (Transformer-based classification model)
- **Language(s):** English
- **License:** Apache 2.0
- **Finetuned from model:** bert-base-uncased
---
### Model Sources
- **Repository:** https://github.com/krishagrawal623/bert-goemotions-sentiment-model.git
- **Dataset:** GoEmotions (Google Research)
---
## Uses
### Direct Use
This model can be used for:
- Sentiment analysis (positive / negative / neutral)
- Social media monitoring
- Customer feedback analysis
- Review classification
Example:
- Input: "This product is amazing!"
- Output: Positive
---
### Downstream Use
- Chatbots ๐ค
- Business analytics dashboards
- Customer support systems
- Market research tools
---
### Out-of-Scope Use
- Not suitable for:
- Non-English text
- Detecting detailed emotions (like anger, joy, fear separately)
- Sarcasm or complex context
---
## Bias, Risks, and Limitations
- Mapping 27 emotions โ 3 classes may **lose detailed emotional information**
- May misclassify:
- Sarcasm
- Mixed sentiments
- Dataset bias may affect predictions
---
### Recommendations
- Use only for general sentiment analysis
- Avoid using for sensitive or critical decisions
- Fine-tune further for domain-specific tasks
---
## How to Get Started with the Model
```python
from transformers import pipeline
classifier = pipeline("text-classification", model="your-username/your-model-name")
result = classifier("I am very happy today!")
print(result)
|