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 |
|
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 |
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 scores. So, for example, The Spongebob Squarepants Out Of Water movie is excellent, I loved it! I do think that the part toward the end could be a bit longer, though.
The Tone Analyzer returns the following...