public class PersonalityInsights extends WatsonService
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPT_LANGUAGE
The Constant ACCEPT_LANGUAGE.
|
static String |
CONTENT
The Constant CONTENT.
|
static String |
INCLUDE_RAW
The Constant INCLUDE_RAW.
|
static String |
LANGUAGE
The Constant LANGUAGE.
|
static String |
TEXT
The Constant TEXT.
|
FORWARD_SLASH| Constructor and Description |
|---|
PersonalityInsights()
Instantiates a new Personality Insights service.
|
| Modifier and Type | Method and Description |
|---|---|
Profile |
getProfile(Map<String,Object> params)
|
Profile |
getProfile(String text)
Accepts text and responds with a
Profile
with a tree of characteristics that include personality, needs, and values. |
String |
toString() |
execute, executeRequest, executeWithoutResponse, getApiKey, getDefaultContentType, getDefaultRequestParams, getEndPoint, getHttpClient, getThreadSafeClient, setApiKey, setAuthentication, setEndPoint, setUsernameAndPasswordpublic static final String ACCEPT_LANGUAGE
public static final String CONTENT
public static final String INCLUDE_RAW
public static final String LANGUAGE
public static final String TEXT
public PersonalityInsights()
public Profile getProfile(Map<String,Object> params)
Content object and responds with a Profile
with a tree of characteristics that include personality, needs, and values.
If you include either created or updated timestamps, the response also includes
a summary of the author's writing habits with respect to time of day.params - The parameters to generate the profile. Either text or content need
to be specifiedpublic Profile getProfile(String text)
Profile
with a tree of characteristics that include personality, needs, and values.text - Text to analyzeProfilepublic String toString()
toString in class WatsonServiceCopyright © 2015. All rights reserved.