Downloads · 30 days
21
0% of all-time downloads
snoneeightfive/financial-news-headers-sentiment-analysis
financial-news-headers-sentiment-analysis is a text classification model from snoneeightfive. 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.
This model provides a ranking of sentiment based on given financial news.
Downloads · 30 days
21
0% of all-time downloads
All-time downloads
6.1K
Public
Parameters
125M
499 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
This model provides a ranking of sentiment based on given financial news.
This modelcard aims to be a base template for new models. It has been generated using this raw template.
The base model I used was cardiffnlp/twitter-roberta-base-sentiment-latest. I used Twitter financial news' comments and headlines, with sentiment ranging from 1 to 10 and positive, negative, or neutral to describe it. I then fine-tuned the model and tested it from more Twitter financial news data for accuracy.
from transformers import pipeline
pipe = pipeline("text-classification", model="snoneeightfive/financial-news-headers-sentiment-analysis")
pipe("Defense stocks are steadily rising ") # Your financial headline
[{'label': 'positive', 'score': 0.6553508639335632}] # Example output
Accuracy: 80%
Financial headlines from Twittter.
Shreya Nakum