Spaces:
Sleeping
Sleeping
File size: 1,236 Bytes
b74339c e4eb82b b74339c e4eb82b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
---
title: NLP Analysis API
emoji: 🤖
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
---
# NLP Analysis API
A FastAPI-based backend service for:
- 💬 Sentiment Analysis
- 🏷️ Named Entity Recognition (NER)
- 🌍 Translation (multiple languages)
- ✍️ Text Paraphrasing
- 📝 Text Summarization
## Features
- Real-time text analysis using Hugging Face transformers
- RESTful API with comprehensive documentation
- Rate limiting and input validation
- CORS enabled for web apps
- Professional error handling
## API Endpoints
- `GET /` - API status
- `GET /health` - Health check with model status
- `POST /analyze` - Sentiment analysis
- `POST /ner` - Named entity recognition
- `POST /translate` - Text translation
- `POST /paraphrase` - Text paraphrasing
- `POST /summarize` - Text summarization
## Usage
Once deployed, visit the `/docs` endpoint for interactive API documentation (Swagger UI).
Example request:
```bash
curl -X POST "https://huggingface.co/spaces/karim323/nlp-analysis-api/analyze" \
-H "Content-Type: application/json" \
-d '{"text": "I love this product!"}'
```
## Tech Stack
- FastAPI
- Hugging Face Transformers
- PyTorch
- Python 3.11
Built with ❤️ for the ML community
|