Skip to content

Commit 699c132

Browse files
committed
feat: add sentiment analysis project
1 parent 445bf43 commit 699c132

File tree

6 files changed

+1853
-1
lines changed

6 files changed

+1853
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Sentiment Analysis Project
2+
3+
A tool to analyze the sentiment of Reddit comments using GPT-4.
4+
5+
<p align="center">
6+
<img src="screenshot.png">
7+
</p>
8+
9+
## Setup
10+
11+
You need to create a virtual env and install the packages listed in `requirements.txt`. You can then run Jupyter Notebooks in VS Code.
12+
13+
Follow these steps: [How to Work with Python Virtual Environments, Jupyter Notebooks and VS Code](https://python.plainenglish.io/how-to-work-with-python-virtual-environments-jupyter-notebooks-and-vs-code-536fac3d93a1).
14+
15+
You need to create a `.env` file with your `OPENAI_API_KEY`, `REDDIT_CLIENT_ID`, and `REDDIT_CLIENT_SECRET`.
16+
17+
For Reddit API credentials, you need to [create a personal use script](https://www.reddit.com/prefs/apps).
18+
19+
# Usage
20+
21+
Open `Reddit Sentiment Analysis.ipynb`.
22+
23+
## Features
24+
25+
- collecting comments from Reddit.
26+
- analyzing sentiment in the comments.
27+
- plotting the results.
28+
29+
Based on [Mastering OpenAI Python APIs: Unleash the Power of GPT4](https://www.udemy.com/course/mastering-openai/) by Colt Steele (2023).

0 commit comments

Comments
 (0)