I'm pulling feedback from a table and analyzing it by converting it to the format below:
String: The food is very bad
Dominant: neg, scores: Array ( [neg] => 0.5 [neu] => 0.25 [pos] => 0.25 )
String: The car is very bad
Dominant: neg, scores: Array ( [neg] => 0.5 [neu] => 0.25 [pos] => 0.25 )
String: The bridge is very bad
Dominant: neg, scores: Array ( [neg] => 0.5 [neu] => 0.25 [pos] => 0.25 )
All I want to do is to compute all the values for negative, positive and neutral and present them in a pie chart
This is an example of the chart I want to develop using the array element