An AI-powered text analysis tool that performs sentiment analysis, keyword extraction, and term relevance scoring against a fixed design vocabulary. Analyze dialogue, reviews, feedback, or any textual content to extract insights about emotions, key topics, and relevance to design terms.
- Sentiment Analysis: Detects 27 different emotions using RoBERTa-based emotion classification
- Keyword Extraction: Automatically extracts important keywords and phrases using KeyBERT
- Term Relevance: Analyze relevance of a fixed design vocabulary in the text
- Python 3.8 or higher
- pip (Python package manager)
-
Clone this repository:
git clone https://github.com/thomknoe/sentiment.js.git cd sentiment.js -
Create and activate a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Python dependencies:
pip install -r requirements.txt
Or install manually:
pip install flask flask-cors transformers torch torchvision keybert sentence-transformers scikit-learn
-
Run the Flask backend server:
python backend.py
The backend will start on
http://127.0.0.1:5001 -
Open the frontend:
- Option A: Use VS Code's "Go Live" extension or any local server
- Option B: Open
index.htmldirectly in a browser (voice recording won't work without HTTPS) - Option C: Use Python's built-in server:
Then open
python -m http.server 8000
http://localhost:8000in your browser
-
Start analyzing text!