To use virtual environment with jupyter notebooks you need to:
- make sure you are in the project directory
- create virtual environment
python3 -m venv env
- activate environment
source env/bin/activate
- install requirements
pip install -r requirements.txt
- install kernel
python -m ipykernel install --name py-sentimentanalysis
- launch jupyter notebook
jupyter-notebook
- after you are done - deactivate environment
deactivate
The data set comes from Sentiment Labelled Sentences Data Set from the UCI Machine Learning Repository.
This is an implementation of what has been described here.