Construct a PersonalityInsightsV3 object.
Name | Type | Attribute | Description |
---|---|---|---|
options |
UserOptions |
Options for the service. |
Get the instance of the authenticator set on the service.
Get profile.
Generates a personality profile for the author of the input text. The service accepts a maximum of 20 MB of input content, but it requires much less text to produce an accurate profile. The service can analyze text in Arabic, English, Japanese, Korean, or Spanish. It can return its results in a variety of languages.
See also:
You can provide input content as plain text (text/plain
), HTML (text/html
), or JSON (application/json
) by
specifying the Content-Type parameter. The default is text/plain
.
When specifying a content type of plain text or HTML, include the charset
parameter to indicate the character
encoding of the input text; for example, Content-Type: text/plain;charset=utf-8
.
See also: Specifying request and response formats
You must request a response as JSON (application/json
) or comma-separated values (text/csv
) by specifying the
Accept parameter. CSV output includes a fixed number of columns. Set the csv_headers parameter to true
to
request optional column headers for CSV output.
See also:
Name | Type | Attribute | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
ProfileParams |
The parameters to send to the service. Properties
|
|||||||||||||||||||||||||||||||||||||
callback |
Callback<Profile> | Optional |
Get profile as csv.
Generates a personality profile for the author of the input text. The service accepts a maximum of 20 MB of input content, but it requires much less text to produce an accurate profile. The service can analyze text in Arabic, English, Japanese, Korean, or Spanish. It can return its results in a variety of languages.
See also:
You can provide input content as plain text (text/plain
), HTML (text/html
), or JSON (application/json
) by
specifying the Content-Type parameter. The default is text/plain
.
When specifying a content type of plain text or HTML, include the charset
parameter to indicate the character
encoding of the input text; for example, Content-Type: text/plain;charset=utf-8
.
See also: Specifying request and response formats
You must request a response as JSON (application/json
) or comma-separated values (text/csv
) by specifying the
Accept parameter. CSV output includes a fixed number of columns. Set the csv_headers parameter to true
to
request optional column headers for CSV output.
See also:
Name | Type | Attribute | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
ProfileAsCsvParams |
The parameters to send to the service. Properties
|
|||||||||||||||||||||||||||||||||||||
callback |
Callback<ReadableStream | Buffer> | Optional |
Set the service URL to send requests to.
Name | Type | Attribute | Description |
---|---|---|---|
url |
string |
The base URL for the service. |
Generated using TypeDoc
The IBM Watson™ Personality Insights service enables applications to derive insights from social media, enterprise data, or other digital communications. The service uses linguistic analytics to infer individuals' intrinsic personality characteristics, including Big Five, Needs, and Values, from digital communications such as email, text messages, tweets, and forum posts. interfaces
The service can automatically infer, from potentially noisy social media, portraits of individuals that reflect their personality characteristics. The service can infer consumption preferences based on the results of its analysis and, for JSON content that is timestamped, can report temporal behavior.
Note: Request logging is disabled for the Personality Insights service. Regardless of whether you set the
X-Watson-Learning-Opt-Out
request header, the service does not log or retain data from requests and responses.