Hi Team ,
Can anyone help me out on find sentiment by Sentiment Score.
When we are executing below code it return: 0.38 as Sentiment score but here how can i find exact sentiment?
a!sentimentScore( { "I love Seattle but the winter is too cold for me." })
Result:
0.38 .
For example if we pass same text to any third party AI Tools, Let say Amazon Comprehend It will return below structure.
{
"SentimentScore": {
"Mixed": 0.5408428907394409,
"Positive": 0.25948983430862427,
"Neutral": 0.06789177656173706,
"Negative": 0.13177546858787537 },
"Sentiment": "MIXED",
}.
So based on above result we can easily find the sentiment[Mixed].
By Using a!sentimentScore() function how can we find exact sentiment by Sentiment score?.
Thanks InAdvance.
Discussion posts and replies are publicly visible
Thanks for the responce.
deviratnamv : I have gone through the link and we are using cloud 18.2.
sidhantb : You meant to say we need calculate our own sentiment based sentiment score and PF Below code snnippet.
Below code snippet for example.
Code:
if( ri!sentimentScore < 0, "Negative", if( ri!sentimentScore < 0.25, "Mixed", if( ri!sentimentScore < 0.50, "NEUTRAL", "Positive" ) ) )
Thanks In Advance.
sidhantb : Thanks for the Response.
Yes that's true, May be in future will get exact score for individual sentiment.
I think the sentiment should also be calculate from the same algorithm [which we used for calculate sentiment score internally] instead of above expression rule.
We will see if other Practitioners are come up with something.
Thanks!!