Skip to content

ssjky6/Stocks-Sentiment-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stocks-Sentiment-Analyzer

Python Versions PyPI license PRs Welcome

image

Table of Contents
  1. About The Project
  2. Getting Started
  3. Prerequisites
  4. Installation
  5. Contributing
  6. Literature References

About The Project:

This is a Streamlit deployed Web Application, used to analyze and compare stocks. Mass psychology's effects may be one of the factors driving the market. We can measure and use to predict market movement with surprising accuracy levels. We used the the social media and news contents for scrapping real-time information.

A list of commonly used resources that I find helpful are listed in the literature references.

Built With

This section should list any major frameworks that we built our project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.

Getting Started:

We have used a pre-trained sentiment analysis model from the flair(DistilBERT Model) library. This model splits the text into character-level tokens and uses the DistilBERT model to make predictions of words, that the network has never seen before can assign it a sentiment.

DistilBERT is a distilled version of the powerful BERT transformer model — which in-short means — it is a ‘small’ model (only 66 million parameters), and is still super powerful. We have used the flair model for calculating the Prediction Score. Prediction Score is a measure of how well the stock gone to be performing on the basis of past hour tweets.

We are also comapring the input stock performance with two competitor stocks on a NLTK trained sentiment analysis model and parses the FinViz stock screener for past one week news headlines.

Prerequisites:

  1. Installing PyTorch on Windows

    conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch

    Installing PyTorch on Linux

    conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch

    Installing PyTorch on Mac

    conda install pytorch torchvision torchaudio -c pytorch

    MacOS Binaries dont support CUDA, install from source if CUDA is needed

  2. Installing Streamlit

    pip install streamlit
  3. Installing Flair

    pip install flair
  4. Installing packages from requirements.txt

Installation:

  1. Cloning the Repo

    git clone https://github.com/ssjky6/Stocks-Sentiment-Analyzer.git
  2. Running the Application

    streamlit run app.py

Contributing:

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated 😍.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Literature References:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published