SentiLog-AI
SentiLog-AI copied to clipboard
Create a feature that adds hate speech / toxicity detection using [Perspective API] to the existing journal and news analysis functionality.
- Use Perspective API to score text for toxicity.
2.Add a backend route (e.g.
/analyze-toxicity) that returns a score + toxicity flag. 3.This can optionally reject or flag user content based on thresholds (e.g. 0.7+). 4.Will keep frontend changes minimal (can work as backend-only if preferred). 5.Encourages safer mental health tracking by detecting toxic or harmful self-talk. 6.Flags hate speech in news articles for responsible content moderation. 7.Enhances user safety and aligns with the platform's goals around wellness.
@lohaarja work on it.
implement the following functionality:
- Upon fetching news from news APIs and storing it in our database using our sentiment analysis model, also utilise the mentioned API.
- Add a new field to the news that will assist in detecting its toxicity level.
- Store the data with the added field.
@lohaarja whats the update? its been more than a week since I assigned to you. report back with PR
Started working on it but having some issues with the code and API. Will try to resolve as soon as possible. Sorry for the delay.