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.
>=3.11Clone this repository
git clone [email protected]:ericrallen/sentiment-analysis-notebook.gitChange into the directory
cd sentiment-analysis-notebookInstall the dependencies
pip install -r requirements.txtNote: you can use whatever Python environment manager you prefer.
Create .env file; and fill in your API keys
cp .env.example .envRun the notebook
jupyter notebookOpen the notebook in your browser and follow along