With the Tone Analyzer API, as the name implies, you can analyze the tone of a passage of text. These are the six possible tones as shown in the following table:
Tone |
Example |
Anger |
Seriously? I just bought my phone yesterday and it's already bricked! |
Fear |
I'm worried my phone is going to overheat! |
Joy |
#ThisBrand makes the best chocolate bars! |
Sadness |
It's too bad that Ken and Brad lost to a computer on Jeopardy! |
Analytical |
Your computational thinking skills are excellent; however, you need to work on your programming. |
Tentative |
I'm beginning to wonder if #ThisPhone is the best in the market anymore. |
When you pass Watson some text, it generates a score for each of these tones on a scale of 0 to 1. It also lets you know which parts of the text activated those...