Analyze sentiments of emails from your inbox using the power of OpenAI's GPT-3! A Python-based tool designed to process and extract sentiments seamlessly from emails, giving you insight into your communication.
This project stands as a testament to the fusion of human creativity and artificial intelligence. Entirely conceptualized and refined through AI assistance, over 12 hours of meticulous prompt tweaking and iterations have led to this sophisticated tool. Our journey of blending human oversight with AI capabilities promises an innovative future for software development.
- Intuitive GUI: Simply select the INBOX file and let the tool handle the rest.
- Powered by GPT-3: Utilizes OpenAI's state-of-the-art GPT-3 model for accurate sentiment detection.
- Clean Processing: Strips away HTML, unwanted metadata, and extracts the main content of the email.
- Detailed Reports: Get sender details, email content, and the sentiment of each email in a .txt report.
- Rate Limit Handling: Built-in rate limiting and error handling for a smooth user experience.
Ensure you have Python 3.x installed on your system. For new users, it's recommended to install Python from the official website.
After cloning the repository, navigate to the project directory and run the following command to install all required packages:
pip3 install -r requirements.txt
You'll need an OpenAI API key to access the GPT-3 model. Obtain it from OpenAI's website, and replace the placeholder in the code with your key.
Run the main script:
python3 bert.py
A GUI window will open. Select your INBOX file, and the tool will start processing. Once complete, you will find a .txt
report in the project directory containing the analysis.
Note: The current script is configured to analyze mbox formatted inbox files. You can obtain your INBOX file from your email service provider (e.g., Gmail offers an option to download your emails in this format via Google Takeout).
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
This project is open source and available under the MIT License.
- OpenAI for their robust API.
- Python community for the plethora of helpful libraries.
❤️ If you find this tool helpful, consider giving it a star on GitHub!