Downloads · 30 days
11
11% of all-time downloads
LingshuHu/modernbert-sentiment-strength
modernbert-sentiment-strength is a text classification model from LingshuHu. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned ModernBERT-large for sentiment regression using X (Twitter) data.
Downloads · 30 days
11
11% of all-time downloads
All-time downloads
102
Public
Parameters
396M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
From the Hugging Face model README
Fine-tuned ModernBERT-large for sentiment regression using X (Twitter) data.
answerdotai/ModernBERT-largetransformerstext-classificationfrom transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
repo = "LingshuHu/modernbert-sentiment-strength"
tok = AutoTokenizer.from_pretrained(repo)
mdl = AutoModelForSequenceClassification.from_pretrained(repo)
clf = pipeline("text-classification", model=mdl, tokenizer=tok)
print(clf("This is absolutely wonderful!"))
The sentiment score is from -1 (very negative) to +1 (very positive).
Hu, L., Sun, D. R., & Sheldon, D. K. M. (2025). Navigating Sentiment Complexity: Exploring the Rational-Emotional Spectrum and Intergroup Dynamics in Social Media Engagement. AMCIS 2025 Proceedings. 11. https://aisel.aisnet.org/amcis2025/data_science/sig_dsa/11