This repository contains the complete code for building a sentiment analysis model using BERT (a transformer model) and deploying it as a RESTful API using FastAPI.
- End-to-end guide to preprocess customer feedback data for sentiment analysis.
- Fine-tune a pre-trained BERT model for classifying text into Positive, Neutral, or Negative sentiments.
- Save the model and deploy it as an API using FastAPI.
- Test the API with Python’s requests library for real-world use.
- Beginner-friendly explanations of each step, including tokenization, training, and deployment.
- Simple, reusable code snippets to fit your own datasets.
- Detailed guidance on testing the API locally using uvicorn and requests.
- Run Locally: Clone this repo and follow the step-by-step instructions.
- Perfect for students, beginners, and developers looking to add NLP-powered APIs to their projects.