Skip to content

It is a backend service that exposes a RESTful API endpoint for sentiment analysis. The API accepts text input and returns the sentiment analysis result using a pre-trained machine learning model.

Notifications You must be signed in to change notification settings

ayan978/Sentiment_Analysis_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Sentiment_Analysis_API

To run this project, follow these steps:

  1. Clone this repository.
  2. Open the folder using any IDE.
  3. Open terminal and run the command "cd Sentiment_Analysis_API"
  4. In the terminal, run the command "pip install fastapi"
  5. Then, run the command "pip install uvicorn"
  6. Then, run the command "pip install setfit" to use the pretrained model.
  7. A single endpoint at '/analyze' is created to accept post request and show the response using the pre-trained AI model.
  8. By hitting the url '/docs#/analyze', an input string can be put inside the request body. The sentiment analysis result produced by the model can be seen inside the response body.

About

It is a backend service that exposes a RESTful API endpoint for sentiment analysis. The API accepts text input and returns the sentiment analysis result using a pre-trained machine learning model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages