2020perceived and then to improve the tone of your communications. Businesses can use the
2121service to learn the tone of their customers' communications and to respond to each
2222customer appropriately, or to understand and improve their customer conversations.
23- **Note:** Request logging is disabled for the Tone Analyzer service. The service neither
24- logs nor retains data from requests and responses, regardless of whether the
25- `X-Watson-Learning-Opt-Out` request header is set .
23+ **Note:** Request logging is disabled for the Tone Analyzer service. Regardless of whether
24+ you set the `X-Watson-Learning-Opt-Out` request header, the service does not log or retain
25+ data from requests and responses .
2626"""
2727
2828from __future__ import absolute_import
@@ -111,7 +111,7 @@ def __init__(
111111
112112 def tone (self ,
113113 tone_input ,
114- content_type ,
114+ content_type = None ,
115115 sentences = None ,
116116 tones = None ,
117117 content_language = None ,
@@ -136,7 +136,7 @@ def tone(self,
136136 text/plain;charset=utf-8`. For `text/html`, the service removes HTML tags and
137137 analyzes only the textual content.
138138 **See also:** [Using the general-purpose
139- endpoint](https://console.bluemix.net /docs/services/tone-analyzer/using-tone.html#using-the-general-purpose-endpoint).
139+ endpoint](/docs/services/tone-analyzer/using-tone.html#using-the-general-purpose-endpoint).
140140
141141 :param ToneInput tone_input: JSON, plain text, or HTML input that contains the
142142 content to be analyzed. For JSON input, provide an object of type `ToneInput`.
@@ -171,8 +171,6 @@ def tone(self,
171171
172172 if tone_input is None :
173173 raise ValueError ('tone_input must be provided' )
174- if content_type is None :
175- raise ValueError ('content_type must be provided' )
176174 if isinstance (tone_input , ToneInput ):
177175 tone_input = self ._convert_model (tone_input , ToneInput )
178176
@@ -224,7 +222,7 @@ def tone_chat(self,
224222 utterances have more than 500 characters. Per the JSON specification, the default
225223 character encoding for JSON content is effectively always UTF-8.
226224 **See also:** [Using the customer-engagement
227- endpoint](https://console.bluemix.net /docs/services/tone-analyzer/using-tone-chat.html#using-the-customer-engagement-endpoint).
225+ endpoint](/docs/services/tone-analyzer/using-tone-chat.html#using-the-customer-engagement-endpoint).
228226
229227 :param list[Utterance] utterances: An array of `Utterance` objects that provides
230228 the input content that the service is to analyze.
@@ -277,7 +275,8 @@ def tone_chat(self,
277275
278276class DocumentAnalysis (object ):
279277 """
280- DocumentAnalysis.
278+ An object of type `DocumentAnalysis` that provides the results of the analysis for the
279+ full input document.
281280
282281 :attr list[ToneScore] tones: (optional) **`2017-09-21`:** An array of `ToneScore`
283282 objects that provides the results of the analysis for each qualifying tone of the
0 commit comments