A lightweight sentiment analysis demo powered by Large Language Models (LLMs) using the Prompture package. Quickly classify text sentiment, detect tone, and pull out useful phrases.
- Sentiment Classification: Identify positive, negative, neutral, or mixed sentiment
- Confidence Scoring: See how reliable the classification is
- Tone Analysis: Detect formal, informal, optimistic, pessimistic, etc.
- Key Phrase Extraction: Highlight the most important words and topics
- LLM-Powered: Built on state-of-the-art language models via Prompture
- Python 3.8+
- API key for your chosen LLM provider (OpenAI, LM Studio, etc.)
git clone https://github.com/jhd3197/ai-sentiment-analysis.git
cd ai-sentiment-analysis
pip install -r requirements.txt- Copy the example environment file:
cp .env.copy .env- Update
.envwith your own API keys and model settings. (Supports multiple providers: OpenAI, LM Studio, Claude, etc.)
Run the notebook:
jupyter notebook sentiment_notebook.ipynb- Quick analysis of product reviews
- Social media monitoring
- Market research sentiment checks
- Lightweight demos of LLM-powered text analysis
Contributions are welcome! Please submit a PR or open an issue.
- Built with Prompture
- Powered by modern Large Language Models