Text Classification
Transformers
Safetensors
English
bert
finance
reddit
wallstreetbets
sentiment-analysis
NLP
BERT
FinBERT
FinTwitBERT
sentiment
financial-analysis
financial-sentiment-analysis
stocks
stock-market
crypto
cryptocurrency
text-embeddings-inference
Instructions to use StephanAkkerman/FinTwitBERT-wsb-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use StephanAkkerman/FinTwitBERT-wsb-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="StephanAkkerman/FinTwitBERT-wsb-sentiment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("StephanAkkerman/FinTwitBERT-wsb-sentiment") model = AutoModelForSequenceClassification.from_pretrained("StephanAkkerman/FinTwitBERT-wsb-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
FinTwitBERT-wsb-sentiment
This model is a fine-tuned version of FinTwitBERT-sentiment, specifically adapted to understand the informal financial jargon, slang, and sarcasm used on retail trading subreddits like r/wallstreetbets.
Intended Uses
I finetuned this model so that it can also be used to analyze r/wallstreetbets posts. I noticed the slang and language usage differs compared to Twitter/X users.
Dataset
FinTwitBERT-wsb-sentiment has been finetuned on moonscape95/WSBS's dataset. Specifically on the WSB_all_agree.csv dataset.
Training Code
You can find the Python code here.
Usage
Using HuggingFace's transformers library the model and tokenizers can be converted into a pipeline for text classification.
from transformers import pipeline
# Create a sentiment analysis pipeline
pipe = pipeline(
"sentiment-analysis",
model="StephanAkkerman/FinTwitBERT-wsb-sentiment",
)
# Get the predicted sentiment
print(pipe("Nice 9% pre market move for $para, pump my calls Uncle Buffett 🤑"))
Labels
- 0: NEUTRAL
- 1: BULLISH
- 2: BEARISH
- Downloads last month
- 1,201
Model tree for StephanAkkerman/FinTwitBERT-wsb-sentiment
Base model
yiyanghkust/finbert-pretrain Finetuned
StephanAkkerman/FinTwitBERT Finetuned
StephanAkkerman/FinTwitBERT-sentiment