Skip to content

Commit d43c05d

Browse files
committed
chore(Tone Analyzer): Regenerate Tone analyzer
1 parent 7889765 commit d43c05d

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

watson_developer_cloud/tone_analyzer_v3.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ def tone(self,
135135
to indicate the character encoding of the input text; for example: `Content-Type:
136136
text/plain;charset=utf-8`. For `text/html`, the service removes HTML tags and
137137
analyzes only the textual content.
138+
**See also:** [Using the general-purpose
139+
endpoint](https://console.bluemix.net/docs/services/tone-analyzer/using-tone.html#using-the-general-purpose-endpoint).
138140
139141
:param ToneInput tone_input: JSON, plain text, or HTML input that contains the
140142
content to be analyzed. For JSON input, provide an object of type `ToneInput`.
@@ -214,9 +216,10 @@ def tone_chat(self,
214216
overall content and analyzes only the first 50 utterances. If you submit a single
215217
utterance that contains more than 500 characters, the service returns an error for
216218
that utterance and does not analyze the utterance. The request fails if all
217-
utterances have more than 500 characters.
218-
Per the JSON specification, the default character encoding for JSON content is
219-
effectively always UTF-8.
219+
utterances have more than 500 characters. Per the JSON specification, the default
220+
character encoding for JSON content is effectively always UTF-8.
221+
**See also:** [Using the customer-engagement
222+
endpoint](https://console.bluemix.net/docs/services/tone-analyzer/using-tone-chat.html#using-the-customer-engagement-endpoint).
220223
221224
:param list[Utterance] utterances: An array of `Utterance` objects that provides
222225
the input content that the service is to analyze.
@@ -631,9 +634,8 @@ class ToneChatScore(object):
631634
:attr float score: The score for the tone in the range of 0.5 to 1. A score greater
632635
than 0.75 indicates a high likelihood that the tone is perceived in the utterance.
633636
:attr str tone_id: The unique, non-localized identifier of the tone for the results.
634-
The service can return results for the following tone IDs: `sad`, `frustrated`,
635-
`satisfied`, `excited`, `polite`, `impolite`, and `sympathetic`. The service returns
636-
results only for tones whose scores meet a minimum threshold of 0.5.
637+
The service returns results only for tones whose scores meet a minimum threshold of
638+
0.5.
637639
:attr str tone_name: The user-visible, localized name of the tone.
638640
"""
639641

@@ -645,10 +647,8 @@ def __init__(self, score, tone_id, tone_name):
645647
greater than 0.75 indicates a high likelihood that the tone is perceived in the
646648
utterance.
647649
:param str tone_id: The unique, non-localized identifier of the tone for the
648-
results. The service can return results for the following tone IDs: `sad`,
649-
`frustrated`, `satisfied`, `excited`, `polite`, `impolite`, and `sympathetic`. The
650-
service returns results only for tones whose scores meet a minimum threshold of
651-
0.5.
650+
results. The service returns results only for tones whose scores meet a minimum
651+
threshold of 0.5.
652652
:param str tone_name: The user-visible, localized name of the tone.
653653
"""
654654
self.score = score

0 commit comments

Comments
 (0)