Views
No views yet
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)| metric | value |
|---|---|
| accuracy | 0.8807 |
| macro-F1 | 0.8464 |
sentiment_metrics.txt, 3 epochs on CPU.)1from transformers import pipeline
2clf = pipeline("text-classification", model="<your-hf-username>/distilbert-financial-tweet-sentiment")
3clf("$AAPL breaking out to new highs, strong buy")
4# -> [{'label': 'Bullish', 'score': ...}]Yumo Xu and Shay B. Cohen. 2018. Stock Movement Prediction from Tweets and Historical Prices. ACL 2018.