Skip to content

Add sentiment analysis API endpoint#14

Open
SuryaRNaik wants to merge 4 commits into
ruxailab:mainfrom
SuryaRNaik:sentiment-api-endpoint
Open

Add sentiment analysis API endpoint#14
SuryaRNaik wants to merge 4 commits into
ruxailab:mainfrom
SuryaRNaik:sentiment-api-endpoint

Conversation

@SuryaRNaik
Copy link
Copy Markdown

@SuryaRNaik SuryaRNaik commented Mar 14, 2026

This PR adds sentiment analysis endpoints to the API.

It connects the existing sentiment analyzer module with FastAPI and exposes it through API routes.

Endpoints added:

POST /sentiment/analyze
Analyze sentiment of a single text.

POST /sentiment/batch
Analyze sentiment for multiple texts in one request.

The batch endpoint allows users to send multiple texts and receive sentiment results for each of them.

@SuryaRNaik
Copy link
Copy Markdown
Author

Added textblob to requirements.txt since the sentiment analyzer depends on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant