Skip to content

Sentiment Analysis to see how much user love to spend time with their cat#37

Open
ComTDK wants to merge 2 commits into
mainfrom
kha/storyAnalysis
Open

Sentiment Analysis to see how much user love to spend time with their cat#37
ComTDK wants to merge 2 commits into
mainfrom
kha/storyAnalysis

Conversation

@ComTDK

@ComTDK ComTDK commented Dec 29, 2024

Copy link
Copy Markdown
Collaborator

Implement FastAPI Python & Using Hugging Face models to do sentiment analysis.

Purpose of sentiment analysis: To investigate and see how much owner love to spend time with their cat --> Example: user will write in the journal their daily activities, we will extract and check if owner and their pet enjoy that activities --> We can based on the data recommend new activities for them later

How to run:

  1. cd to /Story Analysis
  2. install packages: pip install -r requirements.txt
  3. run the server: uvicorn server:app --reload

Note: Python version: 3.11.4

Result when testing with Postman:

image

How to use:

send request to the server with a text, server response with a dictionary illustrate negative, neutral, positive of the text

Note: I will make new PR for the extracting activities from the text later

@vercel

vercel Bot commented Dec 29, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
robobison-2024 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 29, 2024 4:38am

@ComTDK ComTDK self-assigned this Dec 29, 2024
@ComTDK

ComTDK commented Dec 29, 2024

Copy link
Copy Markdown
Collaborator Author

It took me quite long as I was trying to deploy the server also to make this features visible during the vercel deployment but due to my wallet problem where nothing in it at all, I gave up the idea but will try again using Peter money hehe

@jimanguba jimanguba left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is really cool nice!

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.

3 participants