- Create a file
newsapi.key
and paste your news API key in the first line.
- Install miniconda from https://docs.conda.io/en/latest/miniconda.html
- Install dependencies
conda env create -f environment.yml
for conda orconda create --name finbert --file requirements.txt
- Download model from link and put it in default models directory
finbert/models/sentiment/base/
- Install nltk dependencies
import nltk
nltk.download('punkt')
docker build -t finbert .
docker run -it --rm finbert:latest -p 8050:8050 -p 8051:8051
conda activate finbert
python3 main.py
Input date if manual else it'll fetch data for today.python3 app.py
for Dashboard.
Note : The terminal will output the url for each dashboard
Couldn't have done this without the ProsusAI/finBERT repo ofcourse.
@misc{1908.10063,
Author = {Dogu Araci},
Title = {FinBERT: Financial Sentiment Analysis with Pre-trained Language Models},
Year = {2019},
Eprint = {arXiv:1908.10063},
}