Skip to content

Ryurex-Code/Multilingual-Sentiment-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Multilingual Sentiment Analyzer

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


πŸš€ Live Demo

πŸ‘‰ Try it on Hugging Face Spaces


🎯 Features

  • πŸ”€ 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

🧠 Model Used


πŸ’» Running Locally

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

About

Multilingual text sentiment analysis using the nlptown/bert-base-multilingual-uncased-sentiment model from Hugging Face πŸ€—

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages