|
1 | 1 | # coding: utf-8
|
2 | 2 |
|
3 |
| -# (C) Copyright IBM Corp. 2016, 2020. |
| 3 | +# (C) Copyright IBM Corp. 2020. |
4 | 4 | #
|
5 | 5 | # Licensed under the Apache License, Version 2.0 (the "License");
|
6 | 6 | # you may not use this file except in compliance with the License.
|
|
30 | 30 | from .common import get_sdk_headers
|
31 | 31 | from enum import Enum
|
32 | 32 | from ibm_cloud_sdk_core import BaseService
|
33 |
| -from ibm_cloud_sdk_core import get_authenticator_from_environment |
| 33 | +from ibm_cloud_sdk_core import DetailedResponse |
| 34 | +from ibm_cloud_sdk_core.get_authenticator import get_authenticator_from_environment |
34 | 35 | from typing import Dict
|
35 | 36 | from typing import List
|
36 | 37 |
|
@@ -110,7 +111,7 @@ def tone(self,
|
110 | 111 | text/plain;charset=utf-8`. For `text/html`, the service removes HTML tags and
|
111 | 112 | analyzes only the textual content.
|
112 | 113 | **See also:** [Using the general-purpose
|
113 |
| - endpoint](https://cloud.ibm.com/docs/services/tone-analyzer?topic=tone-analyzer-utgpe#utgpe). |
| 114 | + endpoint](https://cloud.ibm.com/docs/tone-analyzer?topic=tone-analyzer-utgpe#utgpe). |
114 | 115 |
|
115 | 116 | :param ToneInput tone_input: JSON, plain text, or HTML input that contains
|
116 | 117 | the content to be analyzed. For JSON input, provide an object of type
|
@@ -205,7 +206,7 @@ def tone_chat(self,
|
205 | 206 | utterances have more than 500 characters. Per the JSON specification, the default
|
206 | 207 | character encoding for JSON content is effectively always UTF-8.
|
207 | 208 | **See also:** [Using the customer-engagement
|
208 |
| - endpoint](https://cloud.ibm.com/docs/services/tone-analyzer?topic=tone-analyzer-utco#utco). |
| 209 | + endpoint](https://cloud.ibm.com/docs/tone-analyzer?topic=tone-analyzer-utco#utco). |
209 | 210 |
|
210 | 211 | :param List[Utterance] utterances: An array of `Utterance` objects that
|
211 | 212 | provides the input content that the service is to analyze.
|
|
0 commit comments