This returns all tones from the analyzer
# returns all tones (anger, fear, sadness, tentative, analytical
tone_analysis = tone_analyzer.tone({'text': text}, content_type='application/json').get_result()
How can I exclude the 'analytical' tone from being returned from the analysis?
Sorry, it looks like the answer (as of 2017-09-21) is, "You can't."
The documentation for the python-sdk indicates as much. http://watson-developer-cloud.github.io/python-sdk/v1.0.2/apis/watson_developer_cloud.tone_analyzer_v3.html
See specifically:
Under ToneAnalyzerV3.tone(), parameter tones - you can no longer specify the tone list to return:
Under ToneAnalyzerV3.DocumentAnalysis(), the attribute tones - the service only returns tones with scores of value >= 0.5, which means you can't do your own softmax to exclude analytical:
Under ToneAnalyzerV3.SentenceAnalysis(), the attribute tones - same story: