Voice-Sentiment-Classification is a project that converts Persian voice inputs to text using the Whisper speech recognition model and classifies the sentiment of the text using a fine-tuned ParsBERT model. The ParsBERT model has been pruned and converted to ONNX format for optimized performance. The entire system is deployed using FastAPI and Docker for efficient and scalable deployment.
- Converts persian voice input to text using Whisper speech recognition model.
- Classifies sentiment of text using a fine-tuned ParsBERT model.
- Optimized ParsBERT model in ONNX format for efficient inference.
- RESTful API using FastAPI.
- Dockerized for easy deployment.
snappfood-sentiment-analysis: a Persian sentiment analysis dataset
- ParsBert : Transformer-based Model for Persian Language Understanding.
- Whisper: Whisper model converts voice input to text for persian language .
git https://github.com/MohammadRoodbari/Voice-Sentiment-Classification.git
cd Voice-Sentiment-Classification
To start the FastAPI server
cd app
uvicorn main:app --host 0.0.0.0 --port 8080
To build and run the Docker container, follow these steps:
docker build -t Voice-Sentiment-Classification
docker run -d -p 8000:8000 Voice-Sentiment-Classification