Downloads · 30 days
1.7K
29% of all-time downloads
StephanAkkerman/FinTwitBERT-wsb-sentiment
FinTwitBERT-wsb-sentiment is a text classification model from StephanAkkerman. Use it when you need a label for a piece of text. It is set up for transformers.
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.
Downloads · 30 days
1.7K
29% of all-time downloads
All-time downloads
5.8K
Public
Parameters
110M
439 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors439 MB · 100%
From the Hugging Face model README
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.
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.
FinTwitBERT-wsb-sentiment has been finetuned on moonscape95/WSBS's dataset. Specifically on the WSB_all_agree.csv dataset.
You can find the Python code here.
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 🤑"))