Skip to content

springlaughing/StockSentiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnalyzeStock - sentiment analysis of news header

Having row scraped html files as input, AnalyzeStock returns sentiment polarity of the news headers for a particular stock. User can feed in html files for multiple stocks, and either get summary results for all the stocks and the timeperiod, or for a certain day and a certain stock.

Installation

Using the command promt:

pip install git+https://github.com/springlaughing/StockSentiment.git#Egg=AnalyzeStock

Example usage

from AnalyzeStock.News import SentimentAnalyzer
sent = SentimentAnalyzer('Your_path_to_dataset')
sent.plot_scores(single_day=False)

example