Text Classification API¶
A high-performance, production-ready API for sentiment analysis using advanced machine learning models. Built with FastAPI for optimal performance and scalability.
Features¶
- High Performance: Async processing with thread pools for CPU-bound operations
- Multiple Models: Support for various ML algorithms (XGBoost, LightGBM, CatBoost, Neural Networks)
- Batch Processing: Efficient batch prediction with concurrent processing
- Health Monitoring: Comprehensive health checks and metrics
- Docker Ready: Optimized containerization for cloud deployment
- Free Tier Friendly: Memory-efficient design for cost-effective deployment
- Proven Accuracy: 86.3% accuracy validated on 10,000+ test samples
- Production Ready: 608+ predictions/second throughput with 83.3% average confidence
Quick Start¶
# Install dependencies
pip install -r api_requirements.txt
# Run the API
python main.py
# Test prediction
curl -X POST "http://localhost:8000/predict" \
-H "Content-Type: application/json" \
-d '{"text": "This product is amazing!"}'
API Status¶
- Version: 2.0.0
- Status: Production Ready
- License: MIT
- Python: 3.11+
Documentation Sections¶
- Getting Started - Installation and setup
- API Reference - Complete API documentation
- Deployment - Deployment guides
- Contributing - Contributing guidelines