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.
1from transformers import pipeline
2
3pipe = pipeline("text-classification", model="snoneeightfive/financial-news-headers-sentiment-analysis")
4pipe("Defense stocks are steadily rising ") # Your financial headline
5
6[{'label': 'positive', 'score': 0.6553508639335632}] # Example output
Financial headlines from Twittter.