In this interactive workshop powered by a Jupyter Notebook, we'll explore the basics of traditional Sentiment Analysis and how we can expand our sentiment analysis capabilities with ChatGPT and some clever prompting strategies.
In addition to being available on Binder, this workshop notebook is automatically deployed to GitHub Pages via jupyter-book
.
Note: Unfortunately, the ipywidgets
library used to create interactive demonstrations in the notebook does not seem to cooperate with GitHub Pages or the interactive cells provided by Thebe. This is my first Jupyter Notebook, so it's likely that I misconfigured something.
Note: If you are running this notebook locally, it will look for the OPENAI_API_KEY
environment variable, but you can also manually enter your OpenAI API key into the notebook.
To run and interact with this notebook locally, follow the instructions below.
- Python
>=3.11
- OpenAI API Key
- Lakera Guard Access Key (Optional)
-
Clone this repository
git clone [email protected]:ericrallen/sentiment-analysis-notebook.git
-
Change into the directory
cd sentiment-analysis-notebook
-
Install the dependencies
pip install -r requirements.txt
Note: you can use whatever Python environment manager you prefer.
-
Create
.env
file; and fill in your API keyscp .env.example .env
-
Run the notebook
jupyter notebook
-
Open the notebook in your browser and follow along