Skip to content

ammar-s847/Finance-Sentiment-Platform

Repository files navigation

Financial Sentiment Analysis and Time series

Finnhub API Key is required to be added to .env file

https://finnhub.io/

Sentiment Analysis

Overall sentiment is calculated by analyzing news articles related to a specific company. The function processes each article by combining the headline and summary, converting the text to lowercase, and checking for the presence of the company's ticker or name. The sentiment of each article is predicted using a sentiment analysis model. Articles mentioning the company name or ticker directly are given additional weight: articles mentioning the company get a weight of 2, and if the sentiment is negative and highly confident, an extra weight of 1 is added. Sentiment scores are categorized as positive, neutral, or negative based on model predictions and confidence levels. The overall sentiment (positive, neutral, or negative) is determined by the highest count of these categories, and the function returns this overall sentiment along with a list of analyzed news articles and their respective sentiments.

About

Real-time sentiment analysis platform for stocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •