public class PersonalityInsights extends WatsonService
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPT_LANGUAGE |
static String |
CONTENT |
static String |
INCLUDE_RAW |
static String |
LANGUAGE |
static String |
TEXT |
| 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, executeWithoutResponse, getApiKey, getDefaultContentType, getDefaultRequestParams, getEndPoint, getGson, getHttpClient, getThreadSafeClient, setApiKey, 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.