foreach (Term term in terms)
{
string color = "";
- if(term.Sentiment < 0.33)
+ if(term.Sentiment < 0.40)
color = "is-danger";
- else if(term.Sentiment < 0.66)
+ else if(term.Sentiment < 0.60)
color = "is-warning";
else
color = "is-success";
sb.AppendFormat(@"<div class='container' style='margin-top:3em;'>
- <p class='title is-5'>{0}</p>
+ <p class='title is-5'>{0} (value: {3})</p>
<div class='content'>
Sentiment Analysis Result:
<div class='column'><progress class='progress {2}' value='{1}' max='100'>{1}%</progress></div>
</div>
- </div>", term.Name, System.Math.Ceiling(term.Sentiment*100), color);
+ </div>", term.Name, System.Math.Ceiling(term.Sentiment*100), color, term.Sentiment);
}
sb.Append(@" </div>