|
24 | 24 | import com.ibm.watson.developer_cloud.util.Validator; |
25 | 25 |
|
26 | 26 | /** |
27 | | - * ### Service Overview |
28 | | - * The IBM Watson Personality Insights service provides a Representational State Transfer (REST) Application Programming |
29 | | - * Interface (API) that enables applications to derive insights from social media, enterprise data, or other digital |
30 | | - * communications. The service uses linguistic analytics to infer individuals' intrinsic personality characteristics, |
31 | | - * including Big Five, Needs, and Values, from digital communications such as email, text messages, tweets, and forum |
32 | | - * posts. The service can automatically infer, from potentially noisy social media, portraits of individuals that |
33 | | - * reflect their personality characteristics. The service can report consumption preferences based on the results of its |
34 | | - * analysis, and for JSON content that is timestamped, it can report temporal behavior. |
35 | | - * ### API Usage |
36 | | - * The following information provides details about using the service to obtain a personality profile: |
37 | | - * * **The profile method:** The service offers a single `/v3/profile` method that accepts up to 20 MB of input data and |
38 | | - * produces results in JSON or CSV format. The service accepts input in Arabic, English, Japanese, Korean, or Spanish |
39 | | - * and can produce output in a variety of languages. |
40 | | - * * **Authentication:** You authenticate to the service by using your service credentials. You can use your credentials |
41 | | - * to authenticate via a proxy server that resides in IBM Cloud, or you can use your credentials to obtain a token and |
42 | | - * contact the service directly. See [Service credentials for Watson |
43 | | - * services](https://console.bluemix.net/docs/services/watson/getting-started-credentials.html) and [Tokens for |
44 | | - * authentication](https://console.bluemix.net/docs/services/watson/getting-started-tokens.html). |
45 | | - * * **Request Logging:** By default, all Watson services log requests and their results. Data is collected only to |
46 | | - * improve the Watson services. If you do not want to share your data, set the header parameter |
47 | | - * `X-Watson-Learning-Opt-Out` to `true` for each request. Data is collected for any request that omits this header. See |
48 | | - * [Controlling request logging for Watson |
49 | | - * services](https://console.bluemix.net/docs/services/watson/getting-started-logging.html). |
| 27 | + * The IBM Watson Personality Insights service enables applications to derive insights from social media, enterprise |
| 28 | + * data, or other digital communications. The service uses linguistic analytics to infer individuals' intrinsic |
| 29 | + * personality characteristics, including Big Five, Needs, and Values, from digital communications such as email, text |
| 30 | + * messages, tweets, and forum posts. |
50 | 31 | * |
51 | | - * For more information about the service, see [About Personality |
52 | | - * Insights](https://console.bluemix.net/docs/services/personality-insights/index.html). For information about calling |
53 | | - * the service and the responses it can generate, see [Requesting a |
54 | | - * profile](https://console.bluemix.net/docs/services/personality-insights/input.html), [Understanding a JSON |
55 | | - * profile](https://console.bluemix.net/docs/services/personality-insights/output.html), and [Understanding a CSV |
56 | | - * profile](https://console.bluemix.net/docs/services/personality-insights/output-csv.html). |
| 32 | + * The service can automatically infer, from potentially noisy social media, portraits of individuals that reflect their |
| 33 | + * personality characteristics. The service can infer consumption preferences based on the results of its analysis and, |
| 34 | + * for JSON content that is timestamped, can report temporal behavior. |
| 35 | + * |
| 36 | + * For information about the meaning of the models that the service uses to describe personality characteristics, see |
| 37 | + * [Personality models](https://console.bluemix.net/docs/services/personality-insights/models.html). For information |
| 38 | + * about the meaning of the consumption preferences, see [Consumption |
| 39 | + * preferences](https://console.bluemix.net/docs/services/personality-insights/preferences.html). |
57 | 40 | * |
58 | 41 | * @version v3 |
59 | 42 | * @see <a href="http://www.ibm.com/watson/developercloud/personality-insights.html">Personality Insights</a> |
@@ -96,13 +79,23 @@ public PersonalityInsights(String versionDate, String username, String password) |
96 | 79 | } |
97 | 80 |
|
98 | 81 | /** |
99 | | - * Generates a personality profile based on input text. |
| 82 | + * Get profile. |
100 | 83 | * |
101 | | - * Derives personality insights for up to 20 MB of input content written by an author, though the service requires |
102 | | - * much less text to produce an accurate profile; for more information, see [Providing sufficient |
103 | | - * input](https://console.bluemix.net/docs/services/personality-insights/input.html#sufficient). Accepts input in |
104 | | - * Arabic, English, Japanese, Korean, or Spanish and produces output in one of eleven languages. Provide plain text, |
105 | | - * HTML, or JSON content, and receive results in JSON or CSV format. |
| 84 | + * Generates a personality profile for the author of the input text. The service accepts a maximum of 20 MB of input |
| 85 | + * content, but it requires much less text to produce an accurate profile; for more information, see [Providing |
| 86 | + * sufficient input](https://console.bluemix.net/docs/services/personality-insights/input.html#sufficient). The |
| 87 | + * service analyzes text in Arabic, English, Japanese, Korean, or Spanish and returns its results in a variety of |
| 88 | + * languages. You can provide plain text, HTML, or JSON input by specifying the **Content-Type** parameter; the |
| 89 | + * default is `text/plain`. Request a JSON or comma-separated values (CSV) response by specifying the **Accept** |
| 90 | + * parameter; CSV output includes a fixed number of columns and optional headers. Per the JSON specification, the |
| 91 | + * default character encoding for JSON content is effectively always UTF-8; per the HTTP specification, the default |
| 92 | + * encoding for plain text and HTML is ISO-8859-1 (effectively, the ASCII character set). When specifying a content |
| 93 | + * type of plain text or HTML, include the `charset` parameter to indicate the character encoding of the input text; |
| 94 | + * for example: `Content-Type: text/plain;charset=utf-8`. For detailed information about calling the service and the |
| 95 | + * responses it can generate, see (Requesting a |
| 96 | + * profile)[https://console.bluemix.net/docs/services/personality-insights/input.html], (Understanding a JSON |
| 97 | + * profile)[https://console.bluemix.net/docs/services/personality-insights/output.html], and (Understanding a CSV |
| 98 | + * profile)[https://console.bluemix.net/docs/services/personality-insights/output-csv.html]. |
106 | 99 | * |
107 | 100 | * @param profileOptions the {@link ProfileOptions} containing the options for the call |
108 | 101 | * @return a {@link ServiceCall} with a response type of {@link Profile} |
@@ -134,13 +127,23 @@ public ServiceCall<Profile> profile(ProfileOptions profileOptions) { |
134 | 127 | } |
135 | 128 |
|
136 | 129 | /** |
137 | | - * Generates a personality profile based on input text. |
| 130 | + * Get profile. as csv |
138 | 131 | * |
139 | | - * Derives personality insights for up to 20 MB of input content written by an author, though the service requires |
140 | | - * much less text to produce an accurate profile; for more information, see [Providing sufficient |
141 | | - * input](https://console.bluemix.net/docs/services/personality-insights/input.html#sufficient). Accepts input in |
142 | | - * Arabic, English, Japanese, Korean, or Spanish and produces output in one of eleven languages. Provide plain text, |
143 | | - * HTML, or JSON content, and receive results in JSON or CSV format. |
| 132 | + * Generates a personality profile for the author of the input text. The service accepts a maximum of 20 MB of input |
| 133 | + * content, but it requires much less text to produce an accurate profile; for more information, see [Providing |
| 134 | + * sufficient input](https://console.bluemix.net/docs/services/personality-insights/input.html#sufficient). The |
| 135 | + * service analyzes text in Arabic, English, Japanese, Korean, or Spanish and returns its results in a variety of |
| 136 | + * languages. You can provide plain text, HTML, or JSON input by specifying the **Content-Type** parameter; the |
| 137 | + * default is `text/plain`. Request a JSON or comma-separated values (CSV) response by specifying the **Accept** |
| 138 | + * parameter; CSV output includes a fixed number of columns and optional headers. Per the JSON specification, the |
| 139 | + * default character encoding for JSON content is effectively always UTF-8; per the HTTP specification, the default |
| 140 | + * encoding for plain text and HTML is ISO-8859-1 (effectively, the ASCII character set). When specifying a content |
| 141 | + * type of plain text or HTML, include the `charset` parameter to indicate the character encoding of the input text; |
| 142 | + * for example: `Content-Type: text/plain;charset=utf-8`. For detailed information about calling the service and the |
| 143 | + * responses it can generate, see (Requesting a |
| 144 | + * profile)[https://console.bluemix.net/docs/services/personality-insights/input.html], (Understanding a JSON |
| 145 | + * profile)[https://console.bluemix.net/docs/services/personality-insights/output.html], and (Understanding a CSV |
| 146 | + * profile)[https://console.bluemix.net/docs/services/personality-insights/output-csv.html]. |
144 | 147 | * |
145 | 148 | * @param profileOptions the {@link ProfileOptions} containing the options for the call |
146 | 149 | * @param includeHeaders option to have the CSV headers returned with the response |
|
0 commit comments