watson_developer_cloud.tone_analyzer_v3 module

The v3 Tone Analyzer service (https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/tone-analyzer.html)

class ToneAnalyzerV3(version, url='https://gateway.watsonplatform.net/tone-analyzer/api', username=None, password=None, use_vcap_services=True)[source]

Bases: watson_developer_cloud.watson_developer_cloud_service.WatsonDeveloperCloudService

default_url = 'https://gateway.watsonplatform.net/tone-analyzer/api'
latest_version = '2016-02-11'
tone(text)[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