Sign inSign up

hitruong05/sentiment-analyzer-application

By hitruong05

•Updated over 1 year ago

AI-powered tool for analyzing text sentiment with a REST API.

Image
Languages & frameworks
Machine learning & AI
Web servers
0

95

hitruong05/sentiment-analyzer-application repository overview

⁠Sentiment Analyzer Application šŸ“šŸ”

⁠Overview

Sentiment Analyzer Application is a powerful AI-driven tool that analyzes text feedback and determines its sentiment (positive, neutral, or negative). It leverages GPT-4o for sentiment analysis and is built using Spring Boot (backend) and Vite React (frontend).

⁠Features

āœ… AI-powered sentiment analysis using GPT-4o
āœ… REST API for easy integration
āœ… Scalable and containerized with Docker
āœ… Built with Spring Boot & Vite React

⁠Getting Started

ā šŸ”¹ Pull the Docker Image

To get started, pull the latest image from Docker Hub:

docker pull hitruong05/sentiment-analyzer-application:v4
ā šŸ”¹ Run the Container
docker run -d -p 8080:8080 hitruong05/sentiment-analyzer-application:v4
ā šŸ”¹ Access the application
http://localhost:8080

⁠API Usage

The application provides a REST API to manage user feedback and analyze sentiment.

ā šŸ”¹ Get All Feedbacks
  • Endpoint: /api/feedback
  • Method: GET
  • Description: Retrieves all feedback entries from the database.
  • Response Example:
[
  {
    "id": 1,
    "content": "It is a great product",
    "sentimentScore": 0.8,
    "createdAt": "2025-03-14T09:21:21.820333",
    "sentiment": "POSITIVE"
  },
  {
    "id": 2,
    "content": "Could be better",
    "sentimentScore": -0.2,
    "createdAt": "2025-03-14T09:23:19.114186",
    "sentiment": "NEGATIVE"
  }
]
ā šŸ”¹ Submit new Feedback
  • Endpoint: /api/feedback
  • Method: POST
  • Description: Submits a new feedback entry for sentiment analysis.
  • Request Body:
{
  "text": "I love this product!"
}
  • Response Example:
{
  "id": 3,
  "content": "I love this product.",
  "sentimentScore": 0.9,
  "createdAt": "2025-03-14T09:28:13.906895",
  "sentiment": "POSITIVE"
}

⁠This provides a clear API structure for users on Docker Hub. Let me know if you need further refinements! šŸš€

ā šŸ“ž Contact

For any questions, issues, or collaboration opportunities, feel free to reach out:

Tag summary

Content type

Image

Digest

sha256:e3a8ff78b…

Size

278.8 MB

Last updated

over 1 year ago

docker pull hitruong05/sentiment-analyzer-application:v4