Multilingual text sentiment analysis using the nlptown/bert-base-multilingual-uncased-sentiment
model from Hugging Face π€
Supports text input in multiple languages including Indonesian, English, Spanish, Japanese, and more π
Powered by π€ Transformers + Gradio UI
π Try it on Hugging Face Spaces
- π€ Multilingual Input β Supports sentiment analysis for many languages
- π§ Star-based Sentiment Classification (1β5 stars), mapped to:
- 1β2 stars β Negative π
- 3 stars β Neutral π
- 4β5 stars β Positive π
- π» Interactive Web UI built with Gradio
- π Confidence Score displayed in percentage
nlptown/bert-base-multilingual-uncased-sentiment
Trained to classify sentiment from 1 to 5 stars in various languages.
Follow the steps below to run this project locally on your machine:
# 1. Clone the repository
git clone https://github.com/Ryurex/sentiment-multilingual.git
cd sentiment-multilingual
# 2. (Optional but recommended) Create and activate a virtual environment
python -m venv venv
# For Windows
.\venv\Scripts\activate
# For Linux/Mac
source venv/bin/activate
# 3. Install required dependencies
pip install -r requirements.txt
# 4. Run the application
python app.py