To set up:
- Create a
.envfile withOPENAI_API_KEY={paste key here}
Run:
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
Activate your venv from above and do the following:
- go into python interpreter by calling
python3in your command line install the following packages: import nltk nltk.download('punkt') nltk.download('stopwords') nltk.download('twitter_samples') nltk.download('wordnet') nltk.download('averaged_perceptron_tagger')
exit with control+d
Call python3 sentiment.py. If WordNet dependency is not installed, go into your finder and call cmd+shift+h. This will open up your home and access the nltk_data/corpora folder and unzip wordnet.zip
Update Node to v18+ in frontend/ npm install --save-dev @electron/rebuild ./node_modules/.bin/electron-rebuild
Run trainModel.py to train the model and save it as a pickle file!