The Multilingual Sentiment Analysis Tool helps businesses gain valuable insights into customer sentiments by analyzing review scores. Powered by OpenAI GPT models, this tool provides actionable recommendations, empowering local businesses to make data-driven decisions and enhance customer satisfaction.
- Multilingual Sentiment Analysis: Powered by Hugging Face's
nlptown/bert-base-multilingual-uncased-sentiment
model for accurate sentiment analysis in multiple languages. - Actionable Business Insights: The tool generates tailored recommendations using OpenAI's GPT-4 model, helping businesses improve customer experiences.
- Comprehensive Data Visualization: Analyzes review scores and generates various insightful graphs.
- User-Friendly Interface: Intuitive and easy-to-use, allowing businesses to quickly interpret the analysis results.
-
Clone the repository:
git clone https://github.com/john-thuo1/Multilingual_SentimentAnalysis_Tool cd into your directory/ open with vscode
-
Create a virtual environment:
python -m venv env
-
Install the required dependencies:
uv pip install -r requirements.txt
-
Create an OpenAI API Key and Enter it on the Input Field in the Recommendations Page to proceed: openai
-
Run the application:
streamlit run Home.py
-
Prepare your review data in a suitable format, with at least
Date
,Review
, columns. (You can use different column names, but ensure the application can match them during analysis.) -
The application will download the updated dataset and store it locally. You can also download it directly from the browser, and it will include new columns for Sentiment Scores and Overall Sentiment.
-
For viewing various data graphs, navigate to the 'Data Visuals' section. You can explore different types of graphs based on the updated data.
-
In the 'Visuals' section, choose the type of graph you want to display. You can select one or all available graphs.
-
Finally, go to the 'Recommendations' section for tailored business insights powered by the OpenAI GPT-4 model. Enter the OpenAI API Key before proceeding to get insights.
Contributions are welcome! If you have ideas, suggestions, or bug reports, feel free to open an issue or submit a pull request. For major changes, please discuss them first in the issue tracker.
- The Multilingual Sentiment Analysis Tool is built using Hugging Face's
nlptown/bert-base-multilingual-uncased-sentiment
model for sentiment analysis. - OpenAI GPT models provide actionable recommendations for businesses.
- Expand language support to include diverse African languages, such as Kiswahili.
- Enhance the sentiment analysis model to handle nuanced sentiments and improve accuracy.
- Incorporate real-time data analysis capabilities for continuous monitoring of customer sentiment.