zeroshot/twitter-financial-news-sentiment
Viewer • Updated • 11.9k • 5.04k • 177
Fine-tuned distilbert-base-uncased that classifies a financial tweet as Bearish,
Bullish, or Neutral. Trained entirely on a laptop CPU as the sentiment factor for a
combined sentiment + price stock-movement model
(GitHub repo).
| id | label |
|---|---|
| 0 | Bearish |
| 1 | Bullish |
| 2 | Neutral |
zeroshot/twitter-financial-news-sentiment
— 11,932 finance-related tweets, pre-labeled, MIT licensed. Used with its own splits:
~9,543 train / ~2,388 validation. Tweets are short, informal, and cashtag-heavy
($AAPL), with URLs/mentions replaced by placeholder tokens.
distilbert-base-uncased (66M params)Trainer defaults (AdamW, cross-entropy)On the dataset's own validation split:
| metric | value |
|---|---|
| accuracy | 0.8807 |
| macro-F1 | 0.8464 |
(From sentiment_metrics.txt, 3 epochs on CPU.)
from transformers import pipeline
clf = pipeline("text-classification", model="<your-hf-username>/distilbert-financial-tweet-sentiment")
clf("$AAPL breaking out to new highs, strong buy")
# -> [{'label': 'Bullish', 'score': ...}]
Downstream task and dataset:
Yumo Xu and Shay B. Cohen. 2018. Stock Movement Prediction from Tweets and Historical Prices. ACL 2018.
Base model
distilbert/distilbert-base-uncased