watson_developer_cloud.tone_analyzer_v3 module¶
The v3 Tone Analyzer service (https://www.ibm.com/watson/developercloud/tone-analyzer.html)
-
class
ToneAnalyzerV3
(version, url='https://gateway.watsonplatform.net/tone-analyzer/api', **kwargs)[source]¶ Bases:
watson_developer_cloud.watson_developer_cloud_service.WatsonDeveloperCloudService
-
default_url
= 'https://gateway.watsonplatform.net/tone-analyzer/api'¶
-
latest_version
= '2016-05-19'¶
-
tone
(text, tones=None, sentences=None)[source]¶ The tone API is the main API call: it analyzes the “tone” of a piece of text. The message is analyzed from several tones (social tone, emotional tone, writing tone), and for each of them various traits are derived (such as conscientiousness, agreeableness, openness). :param text: Text to analyze :param sentences: If “false”, sentence-level analysis is omitted :param tones: Can be one or more of ‘social’, ‘language’, ‘emotion’; comma-separated.
-