mlomb / chat-analytics

Generate interactive, beautiful and insightful chat analysis reports
https://chatanalytics.app
GNU Affero General Public License v3.0
693 stars 51 forks source link

Avoid rounding sentiment scores (to positive, neutral and negative) #56

Open hopperelec opened 1 year ago

hopperelec commented 1 year ago

Currently, sentiment data for a message is simplified to positive, neutral or negative, but sentiment is much more specific than that and being able to see how extreme the positivity/negativity is could be useful. For example, the pie chart could be a gradient where greener colors mean more positive messages and redder colors mean more negative messages. Sentiment over time could also be changed to (or have another dropdown option for) showing the average or total sentiment score.

mlomb commented 1 year ago

I agree we could provide more details in the sentiment section (charts don't convey much information). But I don't like how we handle sentiment right now, numbers seem a bit too random for me.

We should re-do the whole sentiment thing with another approach. But I'm not sure how or have the time to do it. My idea is to use TFLite models to classify sentiment (maybe with #57) and fall back to AFINN when there is an unsupported language (we have a good advantage here since we know the language of most messages)

Also this is the reason why I was avoiding refactoring the sentiment files 😬

I'll leave it open for now